summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-11-11 15:56:33 +0100
committerhukl <contact@smyck.org>2009-11-11 15:56:33 +0100
commit01e92228020181f340f64865af609be1b182fb8e (patch)
tree027d8d5bb8807952034c1042ed5a4f015b0f50fe
parent6d4ce84772e150fd9950819ca2b0e84614e06763 (diff)
Modified templates to show the editor now
-rw-r--r--app/views/nodes/show.html.erb4
-rw-r--r--app/views/revisions/index.html.erb4
-rw-r--r--app/views/revisions/show.html.erb4
3 files changed, 10 insertions, 2 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 87f65f5..bd95df4 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -16,6 +16,10 @@
16 <td class="description">Author</td> 16 <td class="description">Author</td>
17 <td><%= @page.user.try(:login) %></td> 17 <td><%= @page.user.try(:login) %></td>
18 </tr> 18 </tr>
19 <tr>
20 <td class="description">Editor</td>
21 <td><%= @page.editor.try(:login) %></td>
22 </tr>
19 <% if @page.node.locked? %> 23 <% if @page.node.locked? %>
20 <tr> 24 <tr>
21 <td class="description">Locked by</td> 25 <td class="description">Locked by</td>
diff --git a/app/views/revisions/index.html.erb b/app/views/revisions/index.html.erb
index dbb612b..dc9ad51 100644
--- a/app/views/revisions/index.html.erb
+++ b/app/views/revisions/index.html.erb
@@ -11,7 +11,7 @@
11 <th>Last</th> 11 <th>Last</th>
12 <th>Rev.</th> 12 <th>Rev.</th>
13 <th>Title</th> 13 <th>Title</th>
14 <th>User</th> 14 <th>Editor</th>
15 <th>Date</th> 15 <th>Date</th>
16 <th></th> 16 <th></th>
17 </tr> 17 </tr>
@@ -21,7 +21,7 @@
21 <td><%= radio_button_tag :end_revision, page.revision %></td> 21 <td><%= radio_button_tag :end_revision, page.revision %></td>
22 <td class="revision"><%= page.revision %></td> 22 <td class="revision"><%= page.revision %></td>
23 <td class="title"><%= page.title %></td> 23 <td class="title"><%= page.title %></td>
24 <td class="user"><%= page.user.try(:login) %></td> 24 <td class="user"><%= page.editor.try(:login) %></td>
25 <td class="date"><%= page.updated_at %></td> 25 <td class="date"><%= page.updated_at %></td>
26 <td> 26 <td>
27 <%= link_to 'show', node_revision_path(@node, page) %> 27 <%= link_to 'show', node_revision_path(@node, page) %>
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb
index 154d31b..f2a2895 100644
--- a/app/views/revisions/show.html.erb
+++ b/app/views/revisions/show.html.erb
@@ -12,6 +12,10 @@
12 <td class="description">Author</td> 12 <td class="description">Author</td>
13 <td><%= @page.user.try(:login) %></td> 13 <td><%= @page.user.try(:login) %></td>
14 </tr> 14 </tr>
15 <tr>
16 <td class="description">Editor</td>
17 <td><%= @page.editor.try(:login) %></td>
18 </tr>
15 <% if @page.node.locked? %> 19 <% if @page.node.locked? %>
16 <tr> 20 <tr>
17 <td class="description">Locked by</td> 21 <td class="description">Locked by</td>