Sha256: 3c18a7c0d0fa41feb9e1693495363f10493a18d20c912e113c4b57838d540856

Contents?: true

Size: 1.66 KB

Versions: 14

Compression:

Stored size: 1.66 KB

Contents

- if translations_changes.empty?
  .alert.alert-info
    = t('.no_matches')
- else
  %table.table.table-striped.table-bordered
    %thead
      %tr
        %th
          = t('.key')
        %th
          = t('.locale')
        %th
          = t('.user')
        %th
          = t('.changes')
        %th
          = t('.time')

    %tbody
      - translations_changes.each do |change|
        %tr
          %td
            = link_to change.auditable.key.name, change.auditable.key, target: '_blank'
          %td
            = change.auditable.lang
          %td
            = change.auditable.translator.try TranslationCenter::CONFIG['identifier_type']
          %td
            %ul
              - change.audited_changes.each do |change, value|
                %li
                  = format_change(change, value)
          %td
            = distance_of_time_in_words_to_now change.created_at
            = t('.ago')
  .pagination
    - query_without_page_param = request.query_string.gsub(/&?page=\d*/, '')
    = link_to t('pagination.first'), "#{request.protocol}#{request.host_with_port}#{request.path}?#{query_without_page_param}&page=1"
    - if @page != 1
      |
      = link_to t('pagination.prev'), "#{request.protocol}#{request.host_with_port}#{request.path}?#{query_without_page_param}&page=#{@page - 1}"
    |
    = link_to t('pagination.next'), "#{request.protocol}#{request.host_with_port}#{request.path}?#{query_without_page_param}&page=#{@page + 1}"
    - if @page != @total_pages
      |
      = link_to t('pagination.last'), "#{request.protocol}#{request.host_with_port}#{request.path}?#{query_without_page_param}&page=#{@total_pages}"
    = @page
    = t('.of')
    = @total_pages

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
translation_center-2.0.2 app/views/translation_center/center/_activity.html.haml
translation_center-2.0.1 app/views/translation_center/center/_activity.html.haml
translation_center-1.7.2 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.8.4 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.8.3 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.8.2 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.8.1 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.8.0 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.7.9 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.7.8 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-0.0.0 app/views/translation_center/center/_activity.html.haml
afalkear_translation_center-1.7.7 app/views/translation_center/center/_activity.html.haml
translation_center-1.7.1 app/views/translation_center/center/_activity.html.haml
translation_center-1.7.0 app/views/translation_center/center/_activity.html.haml