diff options
| author | hukl <contact@smyck.org> | 2009-04-27 16:11:47 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-27 16:11:47 +0200 |
| commit | e9418758513fea6a83f63d31ecac316fdb6fc151 (patch) | |
| tree | 0cddb6ca32f082837b6c2fb006e3ffe6f3c27b79 /app/views/admin/_recent_changes.html.erb | |
| parent | 704d002850d995e677bd550c774d9c950f8e7e9c (diff) | |
seperated admin overview into partials. included recent changes
Diffstat (limited to 'app/views/admin/_recent_changes.html.erb')
| -rw-r--r-- | app/views/admin/_recent_changes.html.erb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/admin/_recent_changes.html.erb b/app/views/admin/_recent_changes.html.erb new file mode 100644 index 0000000..1bb14a6 --- /dev/null +++ b/app/views/admin/_recent_changes.html.erb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | <h2>Recent Changes</h2> | ||
| 2 | <div id="draft_list"> | ||
| 3 | <table> | ||
| 4 | <tr class="header"> | ||
| 5 | <th>Title</th> | ||
| 6 | <th>path</th> | ||
| 7 | <th>user</th> | ||
| 8 | <th>date</th> | ||
| 9 | <th></th> | ||
| 10 | </tr> | ||
| 11 | <% @recent_changes.each do |node| %> | ||
| 12 | <tr> | ||
| 13 | <td><%= node.draft.try(:title) %></td> | ||
| 14 | <td><%= node.unique_name %></td> | ||
| 15 | <td><%= node.draft.user.login rescue "" %></td> | ||
| 16 | <td><%= node.updated_at.to_s(:db) %></td> | ||
| 17 | <td class="actions"> | ||
| 18 | <%= link_to 'Show', node_path(node) %> | ||
| 19 | <%= link_to "Revisions", revision_path(:id => node.id) %> | ||
| 20 | </td> | ||
| 21 | </tr> | ||
| 22 | <% end %> | ||
| 23 | </table> | ||
| 24 | </div> \ No newline at end of file | ||
