Sha256: 726bb345dd98e3a78e696f32e6187ffbaafff265411fd033d5628d2971ac6e0f

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

%fieldset
  %h4
    %i.fas.fa-clock-rotate-left
    Previous Versions

  - if @versions.present?
    %section
      %table
        %thead
          %tr
            %th Date Updated
            %th Time Updated
            %th Updated By
            %th Action
        %tbody{ :id => 'versions-table' }
          - @versions.each do |version|
            %tr
              %td= version[:update_date]
              %td= version[:update_time]
              %td= version[:updated_by]
              %td
                = link_to 'Restore', 
                  restore_version_admin_page_path(@page.id, version_index: version[:index]),
                  method: :put,
                  data: { confirm: 'Are you sure you want to restore this version?' }
  - else
    %section
      %p No previous versions are available.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trusty-cms-7.0.8 app/views/admin/pages/_previous_versions.haml