summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/_node_list.html.erb8
-rw-r--r--app/views/nodes/index.html.erb14
2 files changed, 7 insertions, 15 deletions
diff --git a/app/views/nodes/_node_list.html.erb b/app/views/nodes/_node_list.html.erb
index 458ab1ae..f3101058 100644
--- a/app/views/nodes/_node_list.html.erb
+++ b/app/views/nodes/_node_list.html.erb
@@ -14,11 +14,6 @@
14 14
15<%= will_paginate @nodes %> 15<%= will_paginate @nodes %>
16<table class="node_table"> 16<table class="node_table">
17 <tr class="header">
18 <th class="title"><%= t("admin.columns.title") %></th>
19 <th class="actions"><%= t("admin.columns.actions") %></th>
20 <th class="revision"><%= t("admin.columns.rev") %></th>
21 </tr>
22 <% @nodes.each do |node| %> 17 <% @nodes.each do |node| %>
23 <tr class="<%= cycle("even", "odd") %>"> 18 <tr class="<%= cycle("even", "odd") %>">
24 <td class="title"> 19 <td class="title">
@@ -30,7 +25,7 @@
30 t(".flag_embargo", :date => admin_datetime(node.head.published_at)), 25 t(".flag_embargo", :date => admin_datetime(node.head.published_at)),
31 :tier => :attention) if node.embargoed? %> 26 :tier => :attention) if node.embargoed? %>
32 <%= flag("file-pencil", t(".flag_draft")) if node.draft %> 27 <%= flag("file-pencil", t(".flag_draft")) if node.draft %>
33 <%= flag("file-off", t(".flag_no_head")) unless node.head %> 28 <%= flag("world-off", t(".flag_no_head")) unless node.head %>
34 </span> 29 </span>
35 <div class="title_body"> 30 <div class="title_body">
36 <div class="node_title"><%= link_to title_for_node(node), node_path(node) %></div> 31 <div class="node_title"><%= link_to title_for_node(node), node_path(node) %></div>
@@ -54,7 +49,6 @@
54 </span> 49 </span>
55 </div> 50 </div>
56 </td> 51 </td>
57 <td><%= node.head ? node.head.revision : t(".no_revision") %></td>
58 </tr> 52 </tr>
59 <% end %> 53 <% end %>
60</table> 54</table>
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index 357c938b..b88eca06 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -1,10 +1,8 @@
1<h1><%= t(".title") %></h1> 1<%= render "shared/page_actions",
2 2 :title => t(".title"),
3<div> 3 :icon_name => "file-plus",
4 <%= link_to new_node_path, class: 'action_button' do %> 4 :label => t(".create_node"),
5 <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_node") %> 5 :options => [[t(".create_node"), new_node_path]],
6 <% end %> 6 :hint => t(".create_hint") %>
7 <span class="field_hint"><%= t(".create_hint") %></span>
8</div>
9 7
10<%= render 'node_list' %> 8<%= render 'node_list' %>