diff options
Diffstat (limited to 'app/views/revisions/show.html.erb')
| -rw-r--r-- | app/views/revisions/show.html.erb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb new file mode 100644 index 00000000..64979fc1 --- /dev/null +++ b/app/views/revisions/show.html.erb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | <div id="subnavigation"> | ||
| 2 | <%= link_to 'Diff revisions', :action => :diff, :id => params[:id] %> | ||
| 3 | <%= link_to 'Edit', edit_node_path(@node) %> | ||
| 4 | </div> | ||
| 5 | |||
| 6 | <h2>Revisions for Node: <%= @node.unique_name %></h2> | ||
| 7 | |||
| 8 | <h3>Current title: <%= @node.head.title %></h3> | ||
| 9 | <table> | ||
| 10 | <% @node.pages.reverse.each do |page| %> | ||
| 11 | <tr> | ||
| 12 | <td><%= page.revision %></td> | ||
| 13 | <td><%= page.title %></td> | ||
| 14 | <td><%= page.user.try(:login) %></td> | ||
| 15 | <td><%= page.updated_at %></td> | ||
| 16 | </tr> | ||
| 17 | <% end %> | ||
| 18 | </table> \ No newline at end of file | ||
