summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-18 04:33:53 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-18 04:33:53 +0200
commit49de2e14972030a7ef0ca36a94ab55a23a2f3596 (patch)
tree7b05419a805e9bac01a4acea3ba6d0348af50ee6 /app/controllers
parent10bd6ba5cc640f0a85a3adb3641a65ce5edf831d (diff)
Annotate the History list with each revision's lifecycle
Each row in nodes#show's History section now carries terse badges from the action log: created, published, and restored (rollback re-promotion), with date and actor, rendered from entry metadata alone. Backfilled entries wear the inferred marker, so reconstructed provenance stays distinguishable from witnessed history. A revision that was published and later restored shows both badges chronologically -- its true biography. Only create and publish entries carry page_id; trash, restore, and destroy annotate the node's own log zoom instead of any single revision, by design.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/nodes_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 021f8ff..6caa827 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -62,6 +62,9 @@ class NodesController < ApplicationController
62 def show 62 def show
63 @page = @node.draft || @node.head 63 @page = @node.draft || @node.head
64 @translations = @page.translation_summary 64 @translations = @page.translation_summary
65 @page_actions = NodeAction.where(:page_id => @node.pages.select(:id))
66 .order(:occurred_at, :id)
67 .group_by(&:page_id)
65 end 68 end
66 69
67 def edit 70 def edit