From 2d06e3bd5b484ef06f871b589bfabf6307bca1db Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 15 Mar 2009 20:08:31 +0100 Subject: More linkage for revisions --- app/views/admin/index.html.erb | 2 ++ app/views/nodes/show.html.erb | 8 ++++++-- 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 @@ <%= draft.node.unique_name %> <%= draft.user.login rescue "" %> <%= link_to 'Show', node_path(draft.node) %> + <%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %> + <%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %> <% end %> 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 @@

Node

- +

There is no draft to preview. Click <%= link_to 'edit', edit_node_path %> to create one or view the currently -<%= link_to_path 'published version', @node.unique_path %>. \ No newline at end of file +<%= link_to_path 'published version', @node.unique_path %>. +

+

+ View the revisions of this node +

\ No newline at end of file -- cgit v1.3