Sha256: 58a420b690f09ad163958aa4ca8bb4d62a788ecba7814fd969378f533fddb895

Contents?: true

Size: 1.01 KB

Versions: 16

Compression:

Stored size: 1.01 KB

Contents

- title t('.title')

- content_for :submenu do
  = render_cell 'locomotive/settings_menu', :show

- if can? :create, Locomotive::Translation
  - content_for :buttons do
    = local_action_button t('.new'), new_translation_path, icon: 'icon-plus' if can?(:create, Locomotive::Translation)

- if @translations.empty?
  %p.no-items!= t('.no_items', url: new_translation_path)
- else
  %ul.list
    - @translations.each do |translation|
      %li.item

        %strong
          = link_to "#{translation.key}", edit_translation_path(translation)

        %em= truncate translation.values[I18n.locale.to_s], length: 100

        - untranslated_locales(current_site, translation)

        .more
          %span!= t('.updated_at')
          = l translation.updated_at, format: :short

          = link_to_icon :trash, translation_path(translation), title: t('.remove', key: translation.key, default: ''), class: 'remove', data: { confirm: t('locomotive.messages.confirm') }, method: :delete

    = paginate @translations, namespace: 'locomotive'

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.pre.alpha.3 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.7 app/views/locomotive/translations/index.html.haml
locomotivecms-3.0.0.pre.alpha.2 app/views/locomotive/translations/index.html.haml
locomotivecms-3.0.0.pre.alpha app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.6 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.5 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.4 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.3 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.2 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.1 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.0 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/translations/index.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/translations/index.html.haml