diff options
| author | hukl <contact@smyck.org> | 2009-11-14 10:42:21 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-11-14 10:42:21 +0100 |
| commit | 14e3a355fb4c68cc6ab8d123e107e65b8511bd6f (patch) | |
| tree | d7f32a51cf9c42e47bcb84f063db69b26310fb85 /app | |
| parent | f713926e7174ca2271b5ab29600e9475a976d69e (diff) | |
nodes :show now also includes a direct link to to the live version of the node. Additionally, I changed the default route to a named route so it is much easier to generate proper public paths and urls.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/nodes/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index c077f6a..de4d8a2 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -9,8 +9,8 @@ | |||
| 9 | <div id="page_editor" class="show_node"> | 9 | <div id="page_editor" class="show_node"> |
| 10 | <table id="content"> | 10 | <table id="content"> |
| 11 | <tr> | 11 | <tr> |
| 12 | <td class="description">Path</td> | 12 | <td class="description">Public Link</td> |
| 13 | <td><%= @page.public_link %></td> | 13 | <td><%= link_to @page.public_link, content_url(@node.unique_path) %></td> |
| 14 | </tr> | 14 | </tr> |
| 15 | <tr> | 15 | <tr> |
| 16 | <td class="description">Author</td> | 16 | <td class="description">Author</td> |
