diff options
Diffstat (limited to 'app/views/admin')
| -rw-r--r-- | app/views/admin/index.html.erb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index e69de29..00a5c09 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <div id="draft_list"> | ||
| 2 | <h2>Drafts</h2> | ||
| 3 | <table> | ||
| 4 | <tr> | ||
| 5 | <th>ID</th> | ||
| 6 | <th>Title</th> | ||
| 7 | <th>Path</th> | ||
| 8 | <th>Locked by</th> | ||
| 9 | </tr> | ||
| 10 | <% @drafts.each do |draft| %> | ||
| 11 | <tr> | ||
| 12 | <td><%= draft.id %></td> | ||
| 13 | <td><%= draft.title %></td> | ||
| 14 | <td><%= draft.node.unique_name %></td> | ||
| 15 | <td><%= draft.user.login rescue "" %></td> | ||
| 16 | <td><%= link_to 'Show', node_path(draft.node) %></td> | ||
| 17 | </tr> | ||
| 18 | <% end %> | ||
| 19 | </table> | ||
| 20 | </div> \ No newline at end of file | ||
