summaryrefslogtreecommitdiff
path: root/app/views/nodes/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/nodes/show.html.erb')
-rw-r--r--app/views/nodes/show.html.erb35
1 files changed, 29 insertions, 6 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 15547f9c..8d8a9855 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -1,26 +1,49 @@
1<% content_for :subnavigation do %> 1<% content_for :subnavigation do %>
2 <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %> 2 <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %>
3 <%= link_to 'Preview', preview_page_path(@page) %> 3 <%= link_to 'Preview', preview_page_path(@page) %>
4 <%= link_to 'Revisions', revision_path(params[:id]) %> 4 <%= link_to 'Revisions', revision_path(params[:id]) %>
5 <%= link_to 'Unlock', unlock_node_path(@node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
5<% end %> 6<% end %>
6 7
7 8
8<div id="page_editor" class="show_node"> 9<div id="page_editor" class="show_node">
9 <table id="content"> 10 <table id="content">
10 <tr> 11 <tr>
11 <th class="description"></th> 12 <td class="description">Path</td>
12 <th class="content"></th> 13 <td><%= @page.public_link %></td>
13 </tr> 14 </tr>
14 <tr> 15 <tr>
15 <td class="description">Title</td> 16 <td class="description">Author</td>
17 <td><%= @page.user.try(:login) %></td>
18 </tr>
19 <% if @page.node.locked? %>
20 <tr>
21 <td class="description">Locked by</td>
22 <td><%= @page.node.lock_owner.login %></td>
23 </tr>
24 <% end %>
25 <tr>
26 <td class="description">Last updated</td>
27 <td><%= @page.updated_at %></td>
28 </tr>
29 <tr>
30 <td class="description">Published at</td>
31 <td><%= @page.published_at %></td>
32 </tr>
33 <tr>
34 <td class="description">Revision</td>
35 <td><%= @page.revision %></td>
36 </tr>
37 <tr>
38 <td class="description"><strong>Title</strong></td>
16 <td><%= @page.title %></td> 39 <td><%= @page.title %></td>
17 </tr> 40 </tr>
18 <tr> 41 <tr>
19 <td class="description">Abstract</td> 42 <td class="description"><strong>Abstract</strong></td>
20 <td><%= @page.abstract %></td> 43 <td><%= @page.abstract %></td>
21 </tr> 44 </tr>
22 <tr> 45 <tr>
23 <td class="description">Body</td> 46 <td class="description"><strong>Body</strong></td>
24 <td><%= @page.body %></td> 47 <td><%= @page.body %></td>
25 </tr> 48 </tr>
26 <tr> 49 <tr>