blob: 2b7c9991ede18f908f3467d27de9dff0d0caa49a [file] [log] [blame]
<% @heading = "Version History of \"#{@page.presentation_name}\" in #{@site.title}" %>
<% @overview = "This page displays the history of changes of #{link_to_page(@site, @page)} in site #{link_to_site(@site)}" %>
<div id="menu">
<%= link_to('edit', {:controller => 'pages', :action=> 'checkout', :id=> @page.id, :site_id => @site.id} %>
| <%= link_to_notification_toggle(@site, @page, 'Version') %>
</div>
<div class="sectionHeading">Versions</div>
<div class="sectionContent">
<% if @versions %>
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr>
<td class="sectionTableCell">
<table width="100%">
<tr>
<th>ID</th>
<th>Version</th>
<th>Note</th>
<th>Created</th>
<th>Created By</th>
<th>Baseline</th>
</tr>
<% for version in @versions %>
<tr><td><%= version.id %></td>
<td><%= link_to_version version, "Version" %></td>
<td><%= version.note %></td>
<td><%= version.created_on.strftime("%I:%M %p %d-%b-%y") %></td>
<td><%= link_to_user version.user %></td>
<td><%= link_to_baseline version.baseline, @site %></td>
</tr>
<% end %>
</table>
<% else %>
No versions found!
<% end %>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">Relationships</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0"
class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">
Page
</th>
<td class="sectionTableCell" colspan=2>
<%= link_to_page(@site, @page) %>
</td>
</tr>
<%= render_partial("pages/relationships") %>
</table>
</div>