From 400f104320aeb551eddc6ed5608460992a3d23ca Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 9 Jul 2026 18:13:41 +0200 Subject: Modernise revision#show view with the paradigms established in all the other views, removing subnav --- app/views/revisions/show.html.erb | 90 ++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 53 deletions(-) diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb index f2a2895..4148096 100644 --- a/app/views/revisions/show.html.erb +++ b/app/views/revisions/show.html.erb @@ -1,54 +1,38 @@ -<% content_for :subnavigation do %> - <%= link_to 'show all revisions', node_revisions_path(@node) %> -<% end %> -
- - - - - - - - - - - - - - <% if @page.node.locked? %> - - - - - <% end %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Path<%= @page.public_link %>
Author<%= @page.user.try(:login) %>
Editor<%= @page.editor.try(:login) %>
Locked by<%= @page.node.lock_owner.login %>
Last updated<%= @page.updated_at %>
Published at<%= @page.published_at %>
Revision<%= @page.revision %>
Title<%= @page.title %>
Abstract<%= @page.abstract %>
Body<%= @page.body %>
-
\ No newline at end of file +

Revision <%= @page.revision %>: <%= @page.title %>

+ +
+
Actions
+
+
+
+ <%= link_to 'Show all revisions', node_revisions_path(@node) %> +
+
+
+ +
Path
+
<%= @page.public_link %>
+ +
Author
+
<%= @page.user.try(:login) %>
+ +
Editor
+
<%= @page.editor.try(:login) %>
+ +
Last updated
+
<%= @page.updated_at %>
+ +
Published at
+
<%= @page.published_at %>
+ +
Title
+
<%= @page.title %>
+ +
Abstract
+
<%= @page.abstract %>
+ +
Body
+
<%= @page.body %>
+
+ -- cgit v1.3