Sha256: 09a1fb9b878a46fa577e99ee900ca333baca4a1fcb93fb31cad54937c22d6955

Contents?: true

Size: 781 Bytes

Versions: 7

Compression:

Stored size: 781 Bytes

Contents

.page-header
  %h2
    = t('.title')
    = @record.class.to_s.demodulize
  %h4
    = @record.is_a?(::Cms::Page) ? "#{t('.full_path')}: #{@record.full_path}" : "#{t('.slug')}: #{@record.identifier}"

- content_for :right_column do
  .box.revisions
    - @record.revisions.each do |revision|
      = active_link_to l(revision.created_at), :id => revision.id
      
%table.table
  %tr
    %th
    %th= t('.current')
    %th= l(@revision.created_at)

  - @current_content.each do |label, content|
    %tr
      %th= ::Cms::Layout.human_attribute_name(label)
      %td
        %pre= content
      %td
        %pre= @versioned_content[label]
  
= comfy_form_for @revision, :url => {:action => :revert} do |form|
  .form-actions
    = form.submit t('.update'), :class => 'btn btn-primary'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.11.1 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.11.0 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/revisions/show.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/revisions/show.html.haml