Sha256: 519d9eb7594eb1b81cb077c053acae31c5f2eb35e4843bf2584ad03318f5488e

Contents?: true

Size: 1.58 KB

Versions: 9

Compression:

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

9 entries across 9 versions & 1 rubygems

Version Path
translation_center-1.6.5 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.4 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.3 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.2 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.1 app/views/translation_center/center/_activity.html.haml
translation_center-1.6.0 app/views/translation_center/center/_activity.html.haml
translation_center-1.5.9 app/views/translation_center/center/_activity.html.haml
translation_center-1.5.8 app/views/translation_center/center/_activity.html.haml
translation_center-1.5.7 app/views/translation_center/center/_activity.html.haml