From e055502fe81469d1f96f41e3dbf70d2ed9ac33fe Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 8 Mar 2009 23:45:52 +0100 Subject: added basic preview feature. If a draft exists, the show action renders a proper preview. If not the default show template is rendered. --- app/views/nodes/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/nodes/show.html.erb') diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index dd37c280..67dd7fc5 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -1,5 +1,5 @@

Node

-<%= @node.unique_name %> - -<%= link_to 'Edit', edit_node_path %> \ No newline at end of file +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 -- cgit v1.3