diff options
Diffstat (limited to 'app/views/nodes/_node_list.html.erb')
| -rw-r--r-- | app/views/nodes/_node_list.html.erb | 76 |
1 files changed, 39 insertions, 37 deletions
diff --git a/app/views/nodes/_node_list.html.erb b/app/views/nodes/_node_list.html.erb index 55f396b7..1a0c4797 100644 --- a/app/views/nodes/_node_list.html.erb +++ b/app/views/nodes/_node_list.html.erb | |||
| @@ -4,43 +4,45 @@ | |||
| 4 | (params[:tags].present? ? [["tags", params[:tags]]] : []) %> | 4 | (params[:tags].present? ? [["tags", params[:tags]]] : []) %> |
| 5 | 5 | ||
| 6 | <%= will_paginate @nodes %> | 6 | <%= will_paginate @nodes %> |
| 7 | <table class="node_table"> | 7 | <table class="admin_table node_table"> |
| 8 | <% @nodes.each do |node| %> | 8 | <tbody> |
| 9 | <tr class="<%= cycle("even", "odd") %>"> | 9 | <% @nodes.each do |node| %> |
| 10 | <td class="title"> | 10 | <tr class="<%= cycle("even", "odd") %>"> |
| 11 | <div class="title_with_flags"> | 11 | <td class="title"> |
| 12 | <span class="flag_stack"> | 12 | <div class="title_with_flags"> |
| 13 | <%= flag("lock", t(".flag_locked", :login => node.lock_owner.login), | 13 | <span class="flag_stack"> |
| 14 | :tier => :attention) if node.lock_owner %> | 14 | <%= flag("lock", t(".flag_locked", :login => node.lock_owner.login), |
| 15 | <%= flag("calendar-clock", | 15 | :tier => :attention) if node.lock_owner %> |
| 16 | t(".flag_embargo", :date => admin_datetime(node.head.published_at)), | 16 | <%= flag("calendar-clock", |
| 17 | :tier => :attention) if node.embargoed? %> | 17 | t(".flag_embargo", :date => admin_datetime(node.head.published_at)), |
| 18 | <%= flag("file-pencil", t(".flag_draft")) if node.draft %> | 18 | :tier => :attention) if node.embargoed? %> |
| 19 | <%= flag("world-off", t(".flag_no_head")) unless node.head %> | 19 | <%= flag("file-pencil", t(".flag_draft")) if node.draft %> |
| 20 | </span> | 20 | <%= flag("world-off", t(".flag_no_head")) unless node.head %> |
| 21 | <div class="title_body"> | 21 | </span> |
| 22 | <div class="node_title"><%= link_to title_for_node(node), node_path(node) %></div> | 22 | <div class="title_body"> |
| 23 | <div class="node_path"><%= link_to_path(node.unique_name, node.unique_name) %></div> | 23 | <div class="row_primary node_title"><%= link_to title_for_node(node), node_path(node) %></div> |
| 24 | <div class="row_secondary node_path"><%= link_to_path(node.unique_name, node.unique_name) %></div> | ||
| 25 | </div> | ||
| 24 | </div> | 26 | </div> |
| 25 | </div> | 27 | </td> |
| 26 | </td> | 28 | <td class="actions"> |
| 27 | <td class="actions"> | 29 | <div class="action_grid"> |
| 28 | <div class="action_grid"> | 30 | <span class="action_item"> |
| 29 | <span class="action_item"> | 31 | <%= link_to node_path(node), "aria-label" => t("admin.common.show"), |
| 30 | <%= link_to node_path(node), "aria-label" => t("admin.common.show"), | 32 | title: t("admin.common.show") do %> |
| 31 | title: t("admin.common.show") do %> | 33 | <%= icon("eye", library: "tabler", "aria-hidden": true) %> |
| 32 | <%= icon("eye", library: "tabler", "aria-hidden": true) %> | 34 | <% end %> |
| 33 | <% end %> | 35 | </span> |
| 34 | </span> | 36 | <span class="action_item"> |
| 35 | <span class="action_item"> | 37 | <%= link_to node_revisions_path(node), "aria-label" => t("admin.common.revisions"), |
| 36 | <%= link_to node_revisions_path(node), "aria-label" => t("admin.common.revisions"), | 38 | title: t("admin.common.revisions") do %> |
| 37 | title: t("admin.common.revisions") do %> | 39 | <%= icon("history", library: "tabler", "aria-hidden": true) %> |
| 38 | <%= icon("history", library: "tabler", "aria-hidden": true) %> | 40 | <% end %> |
| 39 | <% end %> | 41 | </span> |
| 40 | </span> | 42 | </div> |
| 41 | </div> | 43 | </td> |
| 42 | </td> | 44 | </tr> |
| 43 | </tr> | 45 | <% end %> |
| 44 | <% end %> | 46 | </tbody> |
| 45 | </table> | 47 | </table> |
| 46 | <%= will_paginate @nodes %> | 48 | <%= will_paginate @nodes %> |
