Sha256: 61198c0bf6f1138c2decfdc4159f4ab8b1dd7db740f49d4621270aff5836f891
Contents?: true
Size: 1.1 KB
Versions: 44
Compression:
Stored size: 1.1 KB
Contents
<h1> <%= t('.title') %> <%= @record.class.to_s.demodulize %></h1> <h2> <%= @record.is_a?(Cms::Page) ? "#{t('.full_path')}: #{@record.full_path}" : "#{t('.slug')}: #{@record.slug}" %> </h2> <% content_for :right_column do %> <h2><%= pluralize(@record.revisions.count, t('.revision')) %></h2> <div class='revisions box'> <% @record.revisions.each do |revision| %> <%= active_link_to revision.created_at, :id => revision.id %> <% end %> </div> <% end %> <%= cms_form_for @revision, :url => {:action => :revert} do |form| %> <%= form.simple_field do %> <div class='current'> <div class='title'>Current</div> </div> <div class='versioned'> <div class='title'><%= @revision.created_at %></div> </div> <% end %> <% @current_content.each do |label, content| %> <%= form.simple_field label do %> <div class='current'> <div class='content'><%= content %></div> </div> <div class='versioned'> <div class='content'><%= @versioned_content[label] %></div> </div> <% end %> <% end %> <%= form.submit t('.update') %> <% end %>
Version data entries
44 entries across 44 versions & 1 rubygems