diff options
| author | hukl <contact@smyck.org> | 2009-03-08 22:57:29 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-08 22:57:29 +0100 |
| commit | 2aab7eaa19dcd2d86012f71954b8543572f8eaa5 (patch) | |
| tree | d79e3a655a119f132e67c2fcee7278ae3b539f38 | |
| parent | 1236567886d4f81cb6d3d4d8017a543c27a66e12 (diff) | |
added revision column to nodes overview
| -rw-r--r-- | app/views/nodes/index.html.erb | 4 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 833ffed..a2a42b1 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | <th class="path">Path</th> | 11 | <th class="path">Path</th> |
| 12 | <th class="actions">Actions</th> | 12 | <th class="actions">Actions</th> |
| 13 | <th class="editor">Locked by</th> | 13 | <th class="editor">Locked by</th> |
| 14 | <th class="revision">Rev.</th> | ||
| 14 | </tr> | 15 | </tr> |
| 15 | <% @nodes.each do |node| %> | 16 | <% @nodes.each do |node| %> |
| 16 | <tr class="<%= cycle("even", "odd") %>"> | 17 | <tr class="<%= cycle("even", "odd") %>"> |
| @@ -29,6 +30,9 @@ | |||
| 29 | <td> | 30 | <td> |
| 30 | <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> | 31 | <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> |
| 31 | </td> | 32 | </td> |
| 33 | <td> | ||
| 34 | <%= node.head.revision if node.head %> | ||
| 35 | </td> | ||
| 32 | </tr> | 36 | </tr> |
| 33 | <% end %> | 37 | <% end %> |
| 34 | </table> | 38 | </table> |
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 5fe88f1..3e67231 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -22,7 +22,7 @@ th { | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | th.title { | 24 | th.title { |
| 25 | width: 400px; | 25 | width: 370px; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | th.path { | 28 | th.path { |
| @@ -37,6 +37,10 @@ th.editor { | |||
| 37 | width: 120px; | 37 | width: 120px; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | th.revision { | ||
| 41 | width: 30px; | ||
| 42 | } | ||
| 43 | |||
| 40 | td { | 44 | td { |
| 41 | padding: 3px; | 45 | padding: 3px; |
| 42 | } | 46 | } |
