Sha256: 037f01cbc4e6ba3c3cb347cdebe4d5800719a9981f1ed3f9ba786e6f77c81e15
Contents?: true
Size: 1.46 KB
Versions: 24
Compression:
Stored size: 1.46 KB
Contents
<h1>Page Revisions</h1> <form> <div class="revisions older-content"> <div class="header"> <div class="header-actions"> <% form_tag :action => 'versions', :id => @page, :html => { :method => :get } do %> View Version: <%= select_tag "version", options_from_collection_for_select(@page.versions, 'version', 'version', @version_num), {'onchange'=>'this.form.submit();'} %> <%= submit_tag 'Go', {'id'=>'go-btn'} %> <% end %> </div> Version <%= @version_num %> </div> <div class="meta"> <label class="title"><span>Title:</span><%= @version.title %></label> <label><span>Slug:</span> <%= @version.slug %></label> <label><span>Keywords:</span> <%= @version.keywords %></label> </div> <%= @version.body.split("\n").join('<br/>') unless @version.body.nil? %> <div id="button-group" class="footer"> <% form_tag :action=>'set_version', :id => @page, :version => @version_num do %> <%= submit_tag "Set As Current Version" %> or <%= link_to "Cancel", :action=>'index' %> <% end %> </div> </div> <div class="revisions current-content"> <div class="header"> Current Version </div> <div class="meta"> <label class="title"><span>Title:</span><%= @page.title %></label> <label><span>Slug:</span> <%= @page.slug %></label> <label><span>Keywords:</span> <%= @page.keywords %></label> </div> <%= @page.body.split("\n").join('<br/>') unless @page.body.nil? %> </div> <div style="clear:both"> </div>
Version data entries
24 entries across 24 versions & 7 rubygems