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/_drafts.html.erb | |
| parent | 704d002850d995e677bd550c774d9c950f8e7e9c (diff) | |
seperated admin overview into partials. included recent changes
Diffstat (limited to 'app/views/admin/_drafts.html.erb')
| -rw-r--r-- | app/views/admin/_drafts.html.erb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/admin/_drafts.html.erb b/app/views/admin/_drafts.html.erb new file mode 100644 index 0000000..abda588 --- /dev/null +++ b/app/views/admin/_drafts.html.erb | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <h2>Drafts (<%= @drafts.size %>)</h2> | ||
| 2 | <div id="draft_list"> | ||
| 3 | <table> | ||
| 4 | <tr class="header"> | ||
| 5 | <th>ID</th> | ||
| 6 | <th>Title</th> | ||
| 7 | <th>Path</th> | ||
| 8 | <th>author</th> | ||
| 9 | <th></th> | ||
| 10 | </tr> | ||
| 11 | <% @drafts.each do |draft| %> | ||
| 12 | <tr> | ||
| 13 | <td><%= draft.id %></td> | ||
| 14 | <td><%= draft.title %></td> | ||
| 15 | <td><%= draft.node.unique_name %></td> | ||
| 16 | <td><%= draft.user.login rescue "" %></td> | ||
| 17 | <td class="actions"> | ||
| 18 | <%= link_to 'Show', node_path(draft.node) %> | ||
| 19 | <%= link_to "Revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %> | ||
| 20 | <%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %> | ||
| 21 | </td> | ||
| 22 | </tr> | ||
| 23 | <% end %> | ||
| 24 | </table> | ||
| 25 | </div> \ No newline at end of file | ||
