diff options
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 |
