Sha256: 8c6f22090833637d8b2a6f4102d8e79389d2471aaf292340e35dc727458e0c8a

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

- content_for :style do
  = stylesheet_link_tag "lolita/i18n/application", :media => "screen,projection"
- content_for :script do
  = javascript_include_tag "lolita/i18n/application"
.box.i18n-bo
  .boxtitle
    %h1.black= ::I18n.t('lolita-i18n.title', :default => ::I18n.t('lolita-i18n.title', :locale => 'en'))
    .arrow
  .list
    %div.actions
      .filters
        = check_box_tag "show_untranslated", nil, params[:show_untranslated]
        = label_tag "show_untranslated", ::I18n.t('lolita-i18n.show-untranslated', :default => ::I18n.t('lolita-i18n.show-untranslated', :locale => 'en'))
    %table
      %thead
        %tr
          %th{:style => "width:450px"}
            = label_tag :active_locale, I18n.t(@active_locale, :default => @active_locale)
            - if locale_options.size > 1
              = select_tag :active_locale, options_for_select(locale_options), :id => "active_locale"
          %th{:style => "width:90%"}= ::I18n.t(::I18n.default_locale)
      %tbody
        - @translation_keys.each do |key|
          - if !params[:show_untranslated] or is_untranslated(key)
            %tr
              %td{:style => "width:450px", :'data-key' => key, :'data-locale' => @active_locale}
                %p= show_translation key
              %td{:style => "width:90%", :'data-key' => key, :'data-locale' => ::I18n.default_locale}
                %p= ::I18n.t(key, :locale => ::I18n.default_locale, :default => "")
                %span.hint
                  = key

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-i18n-0.3.2 app/views/lolita/i18n/index.html.haml
lolita-i18n-0.3.1 app/views/lolita/i18n/index.html.haml
lolita-i18n-0.3.0 app/views/lolita/i18n/index.html.haml