Sha256: 7fdc2cd3e6a3353e5bb5eb1c0c14c657ab34b2f47ccf1d1c51e5ae821b2868a5

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

%li{ class: "#{index == 0 ? 'well well-small active translation_key' : 'well well-small translation_key' }", 'data-key-id' => translation_key.id}
  - if translation_key.accepted_in?(to_lang)
    .translation_key_badge.badge-success{title: t('.translated')}
  - elsif translation_key.no_translations_in?(to_lang)
    .translation_key_badge.badge-important{title: t('.untranslated')}
  - else
    .translation_key_badge.badge-warning{title: t('.waiting_acceptance')}

  - if translation_admin?
    %div
      = link_to '×', translation_key_path(translation_key), method: :delete, data: { confirm: t('actions.are_you_sure', :default => 'Are you sure?') }, class: 'close', remote: true

  %a{ href: "##{translation_key.id}", 'data-toggle' => "tab"}
    %p
      %b
        %em
          = t(translation_key.name)
      %span
        %em.created_time
          = t('.created_at')
          = format_date(translation_key.created_at)
    
    %small
      %div{ 'data-key-id' => translation_key.id, class: "#{translation_admin? ? 'key_editable' : '' }"}
        = translation_key.name

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_center-1.2.1 app/views/translation_center/translation_keys/_show_keys.html.haml