diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 02:23:13 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 02:23:13 +0200 |
| commit | 0a5d7806700bb3154529b99abc75d37ccc46faff (patch) | |
| tree | 16c4b705d824c83c5887ae7661928c0c4f93c2c3 /app/views/nodes/_node_list.html.erb | |
| parent | 90207029de7474082310d0725801d60f7145fa98 (diff) | |
Extract admin strings to i18n: the nodes cluster
Diffstat (limited to 'app/views/nodes/_node_list.html.erb')
| -rw-r--r-- | app/views/nodes/_node_list.html.erb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/nodes/_node_list.html.erb b/app/views/nodes/_node_list.html.erb index f7210f12..1e5d0ed9 100644 --- a/app/views/nodes/_node_list.html.erb +++ b/app/views/nodes/_node_list.html.erb | |||
| @@ -3,23 +3,23 @@ | |||
| 3 | <%= hidden_field_tag "kinds[]", kind %> | 3 | <%= hidden_field_tag "kinds[]", kind %> |
| 4 | <% end %> | 4 | <% end %> |
| 5 | <%= hidden_field_tag :tags, params[:tags] if params[:tags].present? %> | 5 | <%= hidden_field_tag :tags, params[:tags] if params[:tags].present? %> |
| 6 | <%= text_field_tag :q, params[:q], placeholder: "Search title, abstract, body…" %> | 6 | <%= text_field_tag :q, params[:q], placeholder: t(".search_placeholder") %> |
| 7 | <%= button_tag type: "submit", class: "action_button" do %> | 7 | <%= button_tag type: "submit", class: "action_button" do %> |
| 8 | <%= icon("search", library: "tabler", "aria-hidden": true) %> Search | 8 | <%= icon("search", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.search") %> |
| 9 | <% end %> | 9 | <% end %> |
| 10 | <% if params[:q].present? || params[:kinds].present? || params[:tags].present? %> | 10 | <% if params[:q].present? || params[:kinds].present? || params[:tags].present? %> |
| 11 | <%= link_to "Reset", url_for(controller: params[:controller], action: params[:action]) %> | 11 | <%= link_to t("admin.common.reset"), url_for(controller: params[:controller], action: params[:action]) %> |
| 12 | <% end %> | 12 | <% end %> |
| 13 | <% end %> | 13 | <% end %> |
| 14 | 14 | ||
| 15 | <%= will_paginate @nodes %> | 15 | <%= will_paginate @nodes %> |
| 16 | <table class="node_table"> | 16 | <table class="node_table"> |
| 17 | <tr class="header"> | 17 | <tr class="header"> |
| 18 | <th class="node_id">ID</th> | 18 | <th class="node_id"><%= t("admin.columns.id") %></th> |
| 19 | <th class="title">Title</th> | 19 | <th class="title"><%= t("admin.columns.title") %></th> |
| 20 | <th class="actions">Actions</th> | 20 | <th class="actions"><%= t("admin.columns.actions") %></th> |
| 21 | <th class="editor">Locked by</th> | 21 | <th class="editor"><%= t("admin.columns.locked_by") %></th> |
| 22 | <th class="revision">Rev.</th> | 22 | <th class="revision"><%= t("admin.columns.rev") %></th> |
| 23 | </tr> | 23 | </tr> |
| 24 | <% @nodes.each do |node| %> | 24 | <% @nodes.each do |node| %> |
| 25 | <tr class="<%= cycle("even", "odd") %>"> | 25 | <tr class="<%= cycle("even", "odd") %>"> |
