summaryrefslogtreecommitdiff
path: root/app/views/revisions/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/revisions/show.html.erb')
-rw-r--r--app/views/revisions/show.html.erb34
1 files changed, 24 insertions, 10 deletions
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb
index 64979fc1..3e7ce091 100644
--- a/app/views/revisions/show.html.erb
+++ b/app/views/revisions/show.html.erb
@@ -1,18 +1,32 @@
1<div id="subnavigation"> 1<% content_for :subnavigation do %>
2 <%= link_to 'Diff revisions', :action => :diff, :id => params[:id] %>
3 <%= link_to 'Edit', edit_node_path(@node) %> 2 <%= link_to 'Edit', edit_node_path(@node) %>
4</div> 3<% end %>
5 4
6<h2>Revisions for Node: <%= @node.unique_name %></h2> 5<h2>Revisions for Node: <%= @node.unique_name %></h2>
7 6
8<h3>Current title: <%= @node.head.title %></h3> 7<% form_tag diff_revision_path do %>
9<table> 8<table id="revisions">
9 <tr class="header">
10 <th>First</th>
11 <th>Last</th>
12 <th>Rev.</th>
13 <th>Title</th>
14 <th>User</th>
15 <th>Date</th>
16 </tr>
10<% @node.pages.reverse.each do |page| %> 17<% @node.pages.reverse.each do |page| %>
11 <tr> 18 <tr>
12 <td><%= page.revision %></td> 19 <td><%= radio_button_tag :start_revision, page.revision %></td>
13 <td><%= page.title %></td> 20 <td><%= radio_button_tag :end_revision, page.revision %></td>
14 <td><%= page.user.try(:login) %></td> 21 <td class="revision"><%= page.revision %></td>
15 <td><%= page.updated_at %></td> 22 <td class="title"><%= page.title %></td>
23 <td class="user"><%= page.user.try(:login) %></td>
24 <td class="date"><%= page.updated_at %></td>
16 </tr> 25 </tr>
17<% end %> 26<% end %>
18</table> \ No newline at end of file 27 <tr>
28 <td colspan="6" class="right"><%= submit_tag 'Diff revisions' %></td>
29 </tr>
30</table>
31
32<% end %> \ No newline at end of file