Sha256: 1366eb1c5662cd6d9543c5b6634d732147c02755522b520ce65db5596936e5d8

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

%div{ class: "#{index == 0 ? 'tab-pane active' : 'tab-pane' }", id: translation_key.id }
  %p
    .tabbable
      %ul.nav.nav-tabs
        
        %li.active
          %a.translations_tab{'data-key-id' => translation_key.id, "data-toggle" => "tab", :href => "#translations#{translation_key.id}"}
            %span.badge.badge-info.pull-left.translations_count{ id: "translations_#{translation_key.id}_count"}
              = translation_key.translations.in(to_lang).count
            %span
              = t('.translations')

        %li
          %a{"data-toggle" => "tab", :href => "#add_translations#{translation_key.id}"}
            = t('.add_edit_translation')
      .tab-content
        
        .tab-pane.active{ id: "translations#{translation_key.id}" }
          = render 'translation_center/translations/index', translations: translation_key.translations.order('created_at DESC').in(to_lang), translation_key: translation_key
        .tab-pane{ id: "add_translations#{translation_key.id}" }
          
          %em
            %b
              = t(translation_key.name)
          %hr
          .user_translation.well.well-small{ 'data-key-id' => translation_key.id }
            = current_user.translation_for(translation_key, to_lang).value

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
translation_center-1.4.1 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.4.0 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.3.1 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.3.0 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.2.1 app/views/translation_center/translation_keys/_show.html.haml