Sha256: 54d966d9b3ff2a3485365e444761bb0c7c3c7db343a8253e94488927e1e10870
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 KB
Contents
.row .col-12 %h1 = administrador_helper(self).label_for(@resource) - if @version.present? %small.text-muted= "@version #{[@version.id, I18n.l(@version.created_at, format: :short_with_year), @version.event, @version.whodunnit].compact.join(' | ')}" - else %small.text-muted= t(".live") .row.resource-actions.mb-4 .col-6 - if @resource.paper_trail.previous_version&.version.present? = link_to({ action: :version, id: @resource.id, version_id: @resource.paper_trail.previous_version.version.id }, class: 'btn btn-primary btn-responsive') do %i.fas.fa-arrow-left %span.btn-text= t('.previous') .col-6.text-right - if @resource.paper_trail.next_version&.version.present? = link_to({ action: :version, id: @resource.id, version_id: @resource.paper_trail.next_version.version.id }, class: 'btn btn-primary btn-responsive') do %span.btn-text= t('.next') %i.fas.fa-arrow-right .row .col-12 = resource_table(resource: @resource) do |table| = render partial: 'show_table', locals: { table: table } .row .show-actions.col-12.d-flex = link_to({ action: :versions }, class: 'btn btn-light btn-responsive') do %i.fas.fa-arrow-left %span.btn-text= t('.back')
Version data entries
5 entries across 5 versions & 1 rubygems