diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 19:46:29 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-23 19:46:29 +0200 |
| commit | cef5d1a685f324a4779ea6d18da0b0bbf6cfb7b1 (patch) | |
| tree | e481cc324c757d18773d21ed3174dc90f14e16a4 /app/controllers/node_actions_controller.rb | |
| parent | aedf5778aba87c4e8d036dde2a0b6ec79cf8b342 (diff) | |
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.
Diffstat (limited to 'app/controllers/node_actions_controller.rb')
| -rw-r--r-- | app/controllers/node_actions_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
| 11 | .where(:action_participants => { :subject_type => "Node", | 11 | .where(:action_participants => { :subject_type => "Node", |
| 12 | :subject_id => params[:node_id] }) | 12 | :subject_id => params[:node_id] }) |
| 13 | end | 13 | end |
| 14 | if params[:asset_id].present? | ||
| 15 | @actions = @actions.joins(:action_participants) | ||
| 16 | .where(:action_participants => { :subject_type => "Asset", | ||
| 17 | :subject_id => params[:asset_id] }) | ||
| 18 | end | ||
| 14 | @actions = @actions.where(:user_id => params[:user_id]) if params[:user_id].present? | 19 | @actions = @actions.where(:user_id => params[:user_id]) if params[:user_id].present? |
| 15 | @actions = @actions.includes(:node, :user) | 20 | @actions = @actions.includes(:node, :user) |
| 16 | .paginate(:page => params[:page], :per_page => 50) | 21 | .paginate(:page => params[:page], :per_page => 50) |
