diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 07:07:05 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 07:07:05 +0200 |
| commit | 409d71ed471703be8c56f2639a3ecb0fa387e6a7 (patch) | |
| tree | 0a7108786cb549e343d8926b232f52a191570422 /app/views/nodes/index.html.erb | |
| parent | 974062f16169f6d07f2289564be6d72610b8770e (diff) | |
Give node lists a flag column and a shared action bar
Diffstat (limited to 'app/views/nodes/index.html.erb')
| -rw-r--r-- | app/views/nodes/index.html.erb | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 7ab5679e..357c938b 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -7,35 +7,4 @@ | |||
| 7 | <span class="field_hint"><%= t(".create_hint") %></span> | 7 | <span class="field_hint"><%= t(".create_hint") %></span> |
| 8 | </div> | 8 | </div> |
| 9 | 9 | ||
| 10 | <%= will_paginate @nodes %> | 10 | <%= render 'node_list' %> |
| 11 | <table class="node_table"> | ||
| 12 | <tr class="header"> | ||
| 13 | <th class="node_id"><%= t("admin.columns.id") %></th> | ||
| 14 | <th class="title"><%= t("admin.columns.title") %></th> | ||
| 15 | <th class="actions"><%= t("admin.columns.actions") %></th> | ||
| 16 | <th class="editor"><%= t("admin.columns.locked_by") %></th> | ||
| 17 | <th class="revision"><%= t("admin.columns.rev") %></th> | ||
| 18 | </tr> | ||
| 19 | <% @nodes.each do |node| %> | ||
| 20 | <tr class="<%= cycle("even", "odd") %>"> | ||
| 21 | <td class="node_id"><%= node.id %></td> | ||
| 22 | <td class="title"> | ||
| 23 | <h4><%= link_to title_for_node(node), node_path(node) %></h4> | ||
| 24 | <p><%= link_to_path(node.unique_name, node.unique_name) %></p> | ||
| 25 | </td> | ||
| 26 | <td class="actions"> | ||
| 27 | <%= link_to 'show', node_path(node) %> | ||
| 28 | <%= link_to 'edit', edit_node_path(node) %> | ||
| 29 | <%= link_to 'revisions', node_revisions_path(node) %> | ||
| 30 | </td> | ||
| 31 | <td> | ||
| 32 | <%= node.lock_owner.login if node.lock_owner %> | ||
| 33 | </td> | ||
| 34 | <td> | ||
| 35 | <%= node.draft ? node.draft.revision : (node.head ? node.head.revision : "EMPTY") %> | ||
| 36 | </td> | ||
| 37 | </tr> | ||
| 38 | <% end %> | ||
| 39 | </table> | ||
| 40 | <%= will_paginate @nodes %> | ||
| 41 | |||
