diff options
| author | hukl <contact@smyck.org> | 2009-10-18 17:59:57 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-18 17:59:57 +0200 |
| commit | e941a84d6f371938e2e344d0d5ab49b7d54ad8f0 (patch) | |
| tree | 2e8847198cb64b7f2bd49a678d2a11d7ac5784d8 /app/views/admin/index.html.erb | |
| parent | f7d4d68953f913fa025d140674c6db56ed612c00 (diff) | |
minor fix for admin overview
Diffstat (limited to 'app/views/admin/index.html.erb')
| -rw-r--r-- | app/views/admin/index.html.erb | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index 1e599aa..526aa88 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb | |||
| @@ -36,33 +36,37 @@ | |||
| 36 | <% end %> | 36 | <% end %> |
| 37 | </table> | 37 | </table> |
| 38 | </div> | 38 | </div> |
| 39 | <h1>Current Drafts</h1> | ||
| 40 | 39 | ||
| 41 | <table id="current_drafts_table" class="node_table"> | 40 | <div id="current_drafts_table"> |
| 42 | <tr class="header"> | 41 | |
| 43 | <th class="node_id">ID</th> | 42 | <h1>Current Drafts</h1> |
| 44 | <th class="title">Title</th> | 43 | |
| 45 | <th class="actions">Actions</th> | 44 | <table class="node_table"> |
| 46 | <th class="editor">Locked by</th> | 45 | <tr class="header"> |
| 47 | <th class="revision">Rev.</th> | 46 | <th class="node_id">ID</th> |
| 48 | </tr> | 47 | <th class="title">Title</th> |
| 49 | <% @drafts.each do |node| %> | 48 | <th class="actions">Actions</th> |
| 50 | <tr class="<%= cycle("even", "odd") %>"> | 49 | <th class="editor">Locked by</th> |
| 51 | <td class="node_id"><%= node.id %></td> | 50 | <th class="revision">Rev.</th> |
| 52 | <td class="title"> | 51 | </tr> |
| 53 | <h4><%= link_to title_for_node(node), node_path(node) %></h4> | 52 | <% @drafts.each do |node| %> |
| 54 | <p><%= link_to_path(node.unique_name, node.unique_name) %></p> | 53 | <tr class="<%= cycle("even", "odd") %>"> |
| 55 | </td> | 54 | <td class="node_id"><%= node.id %></td> |
| 56 | <td class="actions"> | 55 | <td class="title"> |
| 57 | <%= link_to 'show', node_path(node) %> | 56 | <h4><%= link_to title_for_node(node), node_path(node) %></h4> |
| 58 | <%= link_to 'Revisions', node_revisions_path(node) %> | 57 | <p><%= link_to_path(node.unique_name, node.unique_name) %></p> |
| 59 | </td> | 58 | </td> |
| 60 | <td> | 59 | <td class="actions"> |
| 61 | <%= node.lock_owner.login if node.lock_owner %> | 60 | <%= link_to 'show', node_path(node) %> |
| 62 | </td> | 61 | <%= link_to 'Revisions', node_revisions_path(node) %> |
| 63 | <td> | 62 | </td> |
| 64 | <%= node.draft ? node.draft.revision : node.head.revision %> | 63 | <td> |
| 65 | </td> | 64 | <%= node.lock_owner.login if node.lock_owner %> |
| 66 | </tr> | 65 | </td> |
| 67 | <% end %> | 66 | <td> |
| 68 | </table> \ No newline at end of file | 67 | <%= node.draft ? node.draft.revision : node.head.revision %> |
| 68 | </td> | ||
| 69 | </tr> | ||
| 70 | <% end %> | ||
| 71 | </table> | ||
| 72 | </div> \ No newline at end of file | ||
