blob: 722321946288423271f671a0e755790c197b61bf (
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
63
64
65
66
67
68
69
70
71
72
73
74
|
<% 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>
<% if @node.events.any? %>
<tr>
<td class="description">Events</td>
<td>
<ul>
<% @node.events.order(:start_time).each do |event| %>
<li><%= event_schedule_text(event) %><%= " (primary)" if event.is_primary? %></li>
<% end %>
</ul>
</td>
</tr>
<% end %>
<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>
|