Sha256: 087c908dd689bef111a259a900c0f73eddc6738c10484326210f54932ddea0b3

Contents?: true

Size: 1.23 KB

Versions: 21

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

21 entries across 21 versions & 1 rubygems

Version Path
translation_center-1.2.0 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.1.0 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.0.4 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.0.3 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.0.2 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.0.1 app/views/translation_center/translation_keys/_show.html.haml
translation_center-1.0.0 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.14 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.13 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.12 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.11 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.10 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.9 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.8 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.7 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.6 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.5 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.4 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.3 app/views/translation_center/translation_keys/_show.html.haml
translation_center-0.0.2 app/views/translation_center/translation_keys/_show.html.haml