Sha256: 9a71c66ee32952592cca42ca8169270ae3bb866885e5d589d3ba5f9f758b2ec3

Contents?: true

Size: 1.32 KB

Versions: 22

Compression:

Stored size: 1.32 KB

Contents

- title t('.title')

.row
  .col-md-7
    = help t('.help')
  .col-md-5
    .search-bar
      = form_tag translations_path(current_site), method: :get do
        .form-group
          = hidden_field_tag :filter_by, params[:filter_by]
          = text_field_tag :q, params[:q], placeholder: t('.search_placeholder'), class: 'form-control'
          i.fa.fa-search.icon

.nav-container
  ul.nav.nav-tabs role='tablist'
    - %w(all done partially none).each_with_index do |name, index|

      li class="#{'active' if params[:filter_by] == name || (index == 0 && params[:filter_by].blank?)}"
        = link_to t(".filter_by.#{name}"), translations_path(current_site, q: params[:q], filter_by: index == 0 ? '' : name)

- if @translations.empty?
  br

  .alert.alert-warning
    == t('.no_items')

- else

  #translations-list.row.big-list
    - @translations.each do |translation|
      .item.col-md-12 class=translation_completion_to_class(current_site, translation)
        .text
          strong= link_to translation.key, edit_translation_path(current_site, translation, _location: params.slice(:filter_by, :q))
          .stamp
            == document_stamp(translation)

        .actions
          span.completion
            i.fa.fa-circle

    .text-center
      = paginate @translations, theme: 'twitter-bootstrap-3', pagination_class: 'pagination-sm'

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
locomotivecms-3.3.0 app/views/locomotive/translations/index.html.slim
locomotivecms-3.3.0.rc3 app/views/locomotive/translations/index.html.slim
locomotivecms-3.3.0.rc2 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.2 app/views/locomotive/translations/index.html.slim
locomotivecms-3.2.1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.3.0.rc1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.2.0 app/views/locomotive/translations/index.html.slim
locomotivecms-3.2.0.rc2 app/views/locomotive/translations/index.html.slim
locomotivecms-3.2.0.rc1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.0 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.0.rc3 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.0.rc2 app/views/locomotive/translations/index.html.slim
locomotivecms-3.1.0.rc1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.1 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.0 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.0.rc7 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.0.rc6 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.0.rc5 app/views/locomotive/translations/index.html.slim
locomotivecms-3.0.0.rc4 app/views/locomotive/translations/index.html.slim