blob: de4d8a2636dcd032f79bcf42d90a7b594cd8c2dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<% content_for :subnavigation do %>
<%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %>
<%= link_to 'Preview', preview_page_path(@page) %>
<%= link_to 'Revisions', node_revisions_path(@node) %>
<%= unlock_link if @node.locked? %>
<% end %>
<div id="page_editor" class="show_node">
<table id="content">
<tr>
<td class="description">Public Link</td>
<td><%= link_to @page.public_link, content_url(@node.unique_path) %></td>
</tr>
<tr>
<td class="description">Author</td>
<td><%= @page.user.try(:login) %></td>
</tr>
<tr>
<td class="description">Editor</td>
<td><%= @page.editor.try(:login) %></td>
</tr>
<% if @page.node.locked? %>
<tr>
<td class="description">Locked by</td>
<td><span class="warning"><%= @page.node.lock_owner.login %></span></td>
</tr>
<% end %>
<tr>
<td class="description">Last updated</td>
<td><%= @page.updated_at %></td>
</tr>
<tr>
<td class="description">Published at</td>
<td><%= @page.published_at %></td>
</tr>
<tr>
<td class="description">Revision</td>
<td><%= @page.revision %></td>
</tr>
<tr>
<td class="description">Tagged with:</td>
<td><%= @page.tag_list %></td>
</tr>
<tr>
<td class="description"><strong>Title</strong></td>
<td><%= sanitize( @page.title ) %></td>
</tr>
<tr>
<td class="description"><strong>Abstract</strong></td>
<td><%= sanitize( @page.abstract ) %></td>
</tr>
<tr>
<td class="description"><strong>Body</strong></td>
<td><%= sanitize( @page.body ) %></td>
</tr>
<tr>
<td></td>
<td class="right"></td>
</tr>
</table>
</div>
|