Sha256: 5c76baee789b362db22eb4c5d6736b6f96f16bcd0d8632a577e20e79f559d102

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

%h1= "Show group: #{@group.name}"

= form_for :group, url: handler_group_path(@handler, @group), method: :put do |f|
  %table.translations
    %thead
      %th Last Key
      - I18n.available_locales.each do |locale|
        %th= locale
    %tbody
      - @translations.each do |translation|
        %tr
          %td.translation-key
            .translation-key-text= translation.key_show_with_fallback

          - I18n.available_locales.each do |locale|
            %td.translation= text_field "t", "#{translation.key}[#{locale}]", class: "translation-input", lang: locale, value: translation.value(locale: locale)

        - if translation.file_line_content? || translation.default.present?
          %tr.line-content-row
            %td.line-content{colspan: 1 + I18n.available_locales.length}
              .container
                - if translation.file_line_content?
                  %pre= translation.file_line_content
                - elsif translation.default.present?
                  = "Default: #{translation.default}"
          %tr
            %td.line-spacer{colspan: 1 + I18n.available_locales.length}
      - if @translations.empty?
        %tr
          %td.error{colspan: 2} No translations were found.

  = f.submit "Save"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awesome_translations-0.0.24 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.23 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.22 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.21 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.20 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.19 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.18 app/views/awesome_translations/groups/show.html.haml
awesome_translations-0.0.17 app/views/awesome_translations/groups/show.html.haml