summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-15 20:08:31 +0100
committerhukl <contact@smyck.org>2009-03-15 20:08:31 +0100
commit2d06e3bd5b484ef06f871b589bfabf6307bca1db (patch)
tree2cd930ae231f9e6d29975baf32a7254cd7c05e20
parentb7f67dc8527c6b404fa9682f07c7a1068bb83c7f (diff)
More linkage for revisions
-rw-r--r--app/views/admin/index.html.erb2
-rw-r--r--app/views/nodes/show.html.erb8
2 files changed, 8 insertions, 2 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb
index 00a5c09..c5bb5de 100644
--- a/app/views/admin/index.html.erb
+++ b/app/views/admin/index.html.erb
@@ -14,6 +14,8 @@
14 <td><%= draft.node.unique_name %></td> 14 <td><%= draft.node.unique_name %></td>
15 <td><%= draft.user.login rescue "" %></td> 15 <td><%= draft.user.login rescue "" %></td>
16 <td><%= link_to 'Show', node_path(draft.node) %></td> 16 <td><%= link_to 'Show', node_path(draft.node) %></td>
17 <td><%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %></td>
18 <td><%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %></td>
17 </tr> 19 </tr>
18 <% end %> 20 <% end %>
19 </table> 21 </table>
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 67dd7fc..bbbefe9 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -1,5 +1,9 @@
1<h1>Node</h1> 1<h1>Node</h1>
2 2<p>
3There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to 3There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to
4create one or view the currently 4create one or view the currently
5<%= link_to_path 'published version', @node.unique_path %>. \ No newline at end of file 5<%= link_to_path 'published version', @node.unique_path %>.
6</p>
7<p>
8 View the revisions of this node
9</p> \ No newline at end of file