diff options
| author | hukl <contact@smyck.org> | 2009-03-15 19:27:37 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-15 19:27:37 +0100 |
| commit | 7f82b8e23ec9b76d0b8a417b2d2b577aeaf7a55f (patch) | |
| tree | c70ba3e35987c035831c6244874774491285a99d /app/views/revisions | |
| parent | a936993a5a7bbe7bb4f679d3adc059929cd0d7c5 (diff) | |
adding revision links to the interface. disabling destroy for now
Diffstat (limited to 'app/views/revisions')
| -rw-r--r-- | app/views/revisions/show.html.erb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb index 20fc39c..c63e7e8 100644 --- a/app/views/revisions/show.html.erb +++ b/app/views/revisions/show.html.erb | |||
| @@ -1,2 +1,17 @@ | |||
| 1 | <h1>Revisions#show</h1> | 1 | <div id="subnavigation"> |
| 2 | <p>Find me in app/views/revisions/show.html.erb</p> | 2 | <%= link_to 'Diff revisions', :action => :diff, :id => params[:id] %> |
| 3 | </div> | ||
| 4 | |||
| 5 | <h2>Revisions for Node: <%= @node.unique_name %></h2> | ||
| 6 | |||
| 7 | <h3>Current title: <%= @node.head.title %></h3> | ||
| 8 | <table> | ||
| 9 | <% @node.pages.reverse.each do |page| %> | ||
| 10 | <tr> | ||
| 11 | <td><%= page.revision %></td> | ||
| 12 | <td><%= page.title %></td> | ||
| 13 | <td><%= page.user.try(:login) %></td> | ||
| 14 | <td><%= page.updated_at %></td> | ||
| 15 | </tr> | ||
| 16 | <% end %> | ||
| 17 | </table> \ No newline at end of file | ||
