From cef5d1a685f324a4779ea6d18da0b0bbf6cfb7b1 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 23 Jul 2026 19:46:29 +0200 Subject: Zoom the action log on assets Asset names in summaries and publish deltas link to assets#show with an inline Chronik beside each, suppressed inside that asset's own zoom, per the node convention. assets#show gains a history button. Also renames the details summary (no longer only translations) and moves View Diff onto its own line. --- app/controllers/node_actions_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/node_actions_controller.rb b/app/controllers/node_actions_controller.rb index 9b97b450..0f547732 100644 --- a/app/controllers/node_actions_controller.rb +++ b/app/controllers/node_actions_controller.rb @@ -11,6 +11,11 @@ class NodeActionsController < ApplicationController .where(:action_participants => { :subject_type => "Node", :subject_id => params[:node_id] }) end + if params[:asset_id].present? + @actions = @actions.joins(:action_participants) + .where(:action_participants => { :subject_type => "Asset", + :subject_id => params[:asset_id] }) + end @actions = @actions.where(:user_id => params[:user_id]) if params[:user_id].present? @actions = @actions.includes(:node, :user) .paginate(:page => params[:page], :per_page => 50) -- cgit v1.3