diff options
| author | hukl <contact@smyck.org> | 2009-03-15 19:28:04 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-15 19:28:04 +0100 |
| commit | 4ff20fb57936af76fd97242df3f8c6fe474b7a4a (patch) | |
| tree | 16956c885147b610a004bd66e4aabbd986d5a935 /app/views/revisions/show.html.erb | |
| parent | 82741f65fc387e898e5e17f16a057b34bb6dddab (diff) | |
| parent | 7f82b8e23ec9b76d0b8a417b2d2b577aeaf7a55f (diff) | |
Merge branch 'revisions'
Diffstat (limited to 'app/views/revisions/show.html.erb')
| -rw-r--r-- | app/views/revisions/show.html.erb | 17 |
1 files changed, 17 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..c63e7e8e --- /dev/null +++ b/app/views/revisions/show.html.erb | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | <div id="subnavigation"> | ||
| 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 | ||
