diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 05:40:54 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 05:40:54 +0200 |
| commit | 974062f16169f6d07f2289564be6d72610b8770e (patch) | |
| tree | b18f297a9d4326a3ce36f5192fbc4992fcb28e7d /app/helpers | |
| parent | be2cdea85177ac016e56dcce6cbe6015d754adf5 (diff) | |
Witness every promotion and demotion made through the roles form
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/node_actions_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb index 7dd55bdb..4cf990b8 100644 --- a/app/helpers/node_actions_helper.rb +++ b/app/helpers/node_actions_helper.rb | |||
| @@ -24,6 +24,8 @@ module NodeActionsHelper | |||
| 24 | "user_reactivate" => "user-check", | 24 | "user_reactivate" => "user-check", |
| 25 | "redaktion_grant" => "users-plus", | 25 | "redaktion_grant" => "users-plus", |
| 26 | "redaktion_revoke" => "users-minus", | 26 | "redaktion_revoke" => "users-minus", |
| 27 | "admin_grant" => "shield-plus", | ||
| 28 | "admin_revoke" => "shield-minus", | ||
| 27 | "event_create" => "calendar-plus", | 29 | "event_create" => "calendar-plus", |
| 28 | "event_update" => "calendar-event", | 30 | "event_update" => "calendar-event", |
| 29 | "event_destroy" => "calendar-x" | 31 | "event_destroy" => "calendar-x" |
| @@ -371,6 +373,16 @@ module NodeActionsHelper | |||
| 371 | :target => user_participant_ref(action)).html_safe | 373 | :target => user_participant_ref(action)).html_safe |
| 372 | end | 374 | end |
| 373 | 375 | ||
| 376 | def summarize_admin_grant action | ||
| 377 | t("node_actions.admin_grant", :actor => actor_ref(action), | ||
| 378 | :target => user_participant_ref(action)).html_safe | ||
| 379 | end | ||
| 380 | |||
| 381 | def summarize_admin_revoke action | ||
| 382 | t("node_actions.admin_revoke", :actor => actor_ref(action), | ||
| 383 | :target => user_participant_ref(action)).html_safe | ||
| 384 | end | ||
| 385 | |||
| 374 | def summarize_user_create action | 386 | def summarize_user_create action |
| 375 | t("node_actions.user_create", :actor => actor_ref(action), | 387 | t("node_actions.user_create", :actor => actor_ref(action), |
| 376 | :target => user_participant_ref(action)).html_safe | 388 | :target => user_participant_ref(action)).html_safe |
