Sha256: e9066d2e2d7cce8a5a426635f6ec4ae91849b1c3e77d92133f017727b0f43dda

Contents?: true

Size: 1.62 KB

Versions: 5

Compression:

Stored size: 1.62 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
    = link_to t('pagination.first'), "#{request.protocol}#{request.host_with_port}#{request.fullpath.gsub('&page=' + @page.to_s, '')}?&page=1"
    - if @page != 1
      |
      = link_to t('pagination.prev'), "#{request.protocol}#{request.host_with_port}#{request.fullpath.gsub('&page=' + @page.to_s, '')}?&page=#{@page - 1}"
    |
    = link_to t('pagination.next'), "#{request.protocol}#{request.host_with_port}#{request.fullpath.gsub('&page=' + @page.to_s, '')}?&page=#{@page + 1}"
    - if @page != @total_pages
      |
      = link_to t('pagination.last'), "#{request.protocol}#{request.host_with_port}#{request.fullpath.gsub('&page=' + @page.to_s, '')}?&page=#{@total_pages}"
    = @page
    = t('.of')
    = @total_pages

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
translation_center-1.6.10 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.9 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.8 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.7 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.6 app/views/translation_center/center/_activity.html.haml