diff options
| -rw-r--r-- | app/views/content/_article.html.erb | 3 | ||||
| -rw-r--r-- | app/views/content/render_page.html.erb | 2 | ||||
| -rw-r--r-- | app/views/nodes/index.html.erb | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/app/views/content/_article.html.erb b/app/views/content/_article.html.erb index 10f47d2..765b839 100644 --- a/app/views/content/_article.html.erb +++ b/app/views/content/_article.html.erb | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | <div class="teaserruler"> | 1 | <div class="teaserruler"> |
| 2 | <hr/> | 2 | <hr/> |
| 3 | </div> | 3 | </div> |
| 4 | <h2><%= page.title %></h2> | 4 | |
| 5 | <h2><%= link_to page.title, "/#{page.node.unique_name}" %></h2> | ||
| 5 | <h3><%= date_for_page page %>, <%= author_for_page page %></h3> | 6 | <h3><%= date_for_page page %>, <%= author_for_page page %></h3> |
| 6 | <p><%= page.abstract %></p> \ No newline at end of file | 7 | <p><%= page.abstract %></p> \ No newline at end of file |
diff --git a/app/views/content/render_page.html.erb b/app/views/content/render_page.html.erb index ca35403..4c21667 100644 --- a/app/views/content/render_page.html.erb +++ b/app/views/content/render_page.html.erb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <div class="article"> | 1 | <div class="article"> |
| 2 | <h2><a href="a_barriere.html"><%= @page.title %></a></h2> | 2 | <h2><%= @page.title %></h2> |
| 3 | <h3><%= date_for_page @page %>, <%= @page.user.try(:login) %></h3> | 3 | <h3><%= date_for_page @page %>, <%= @page.user.try(:login) %></h3> |
| 4 | <hr class="subtitle" /> | 4 | <hr class="subtitle" /> |
| 5 | <p><em><%= @page.abstract %></em></p> | 5 | <p><em><%= @page.abstract %></em></p> |
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 3b0dde8..5d59f5d 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | <th class="title">Title</th> | 10 | <th class="title">Title</th> |
| 11 | <th class="path">Path</th> | 11 | <th class="path">Path</th> |
| 12 | <th class="actions">Actions</th> | 12 | <th class="actions">Actions</th> |
| 13 | <th class="editor">Locked by</th> | ||
| 13 | </tr> | 14 | </tr> |
| 14 | <% @nodes.each do |node| %> | 15 | <% @nodes.each do |node| %> |
| 15 | <tr class="<%= cycle("even", "odd") %>"> | 16 | <tr class="<%= cycle("even", "odd") %>"> |
| @@ -24,6 +25,9 @@ | |||
| 24 | <%= link_to 'Edit', edit_node_path(node) %> | 25 | <%= link_to 'Edit', edit_node_path(node) %> |
| 25 | <%= link_to 'Destroy', node, :method => :delete %> | 26 | <%= link_to 'Destroy', node, :method => :delete %> |
| 26 | </td> | 27 | </td> |
| 28 | <td> | ||
| 29 | <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> | ||
| 30 | </td> | ||
| 27 | </tr> | 31 | </tr> |
| 28 | <% end %> | 32 | <% end %> |
| 29 | </table> | 33 | </table> |
