diff options
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 | ||
