diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 14:04:51 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 14:04:51 +0200 |
| commit | c769bfb1b565cafd7a386dba5cae5b6bd4d1d38b (patch) | |
| tree | a32ee178cd760459e6989dbf71da9fa7552e97b0 /app/views/nodes | |
| parent | 603ccfbd5fe96f0b83aaf3d5118aded2a39992fb (diff) | |
nodes#show's revisions subsection renamed to history
Now there's a separate revisions history and a full action
log for a node. To reflect the extended scope, the section
has been renamed to history.
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/show.html.erb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index d0eff60..ae25571 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -170,11 +170,11 @@ | |||
| 170 | </div> | 170 | </div> |
| 171 | </div> | 171 | </div> |
| 172 | 172 | ||
| 173 | <div class="node_description">Revisions</div> | 173 | <div class="node_description">History</div> |
| 174 | <div class="node_content node_info_group"> | 174 | <div class="node_content node_info_group"> |
| 175 | <details> | 175 | <details> |
| 176 | <summary> | 176 | <summary> |
| 177 | <%= pluralize(@node.pages.count, 'revision', 'revisions') %> | 177 | <%= pluralize(@node.pages.count, 'published revision', 'published revisions') %> |
| 178 | </summary> | 178 | </summary> |
| 179 | <ul> | 179 | <ul> |
| 180 | <% @node.pages.order(:revision).each do |page| %> | 180 | <% @node.pages.order(:revision).each do |page| %> |
| @@ -182,8 +182,7 @@ | |||
| 182 | <% end %> | 182 | <% end %> |
| 183 | </ul> | 183 | </ul> |
| 184 | </details> | 184 | </details> |
| 185 | <p class="revisions_full_history_link"><%= link_to 'Full history (diff / restore)', node_revisions_path(@node) %></p> | 185 | <p class="revisions_full_history_link"><%= link_to 'Revision history (diff / restore)', node_revisions_path(@node) %> | <%= link_to t("node_actions.heading"), admin_log_path(:node_id => @node.id) %></p> |
| 186 | <p class)"revisions_full_history_link"><%= link_to t("node_actions.heading"), admin_log_path(:node_id => @node.id) %></p> | ||
| 187 | </div> | 186 | </div> |
| 188 | 187 | ||
| 189 | 188 | ||
