diff options
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/node_actions_helper.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb index f57ef84f..53f6ecd0 100644 --- a/app/helpers/node_actions_helper.rb +++ b/app/helpers/node_actions_helper.rb | |||
| @@ -20,7 +20,9 @@ module NodeActionsHelper | |||
| 20 | "otp_disable" => "shield-off", | 20 | "otp_disable" => "shield-off", |
| 21 | "otp_reset" => "shield-x", | 21 | "otp_reset" => "shield-x", |
| 22 | "user_deactivate" => "user-off", | 22 | "user_deactivate" => "user-off", |
| 23 | "user_reactivate" => "user-check" | 23 | "user_reactivate" => "user-check", |
| 24 | "redaktion_grant" => "user-plus", | ||
| 25 | "redaktion_revoke" => "user-minus" | ||
| 24 | }.freeze | 26 | }.freeze |
| 25 | 27 | ||
| 26 | def verb_icon action | 28 | def verb_icon action |
| @@ -283,4 +285,14 @@ module NodeActionsHelper | |||
| 283 | t("node_actions.user_reactivate", :actor => actor_ref(action), | 285 | t("node_actions.user_reactivate", :actor => actor_ref(action), |
| 284 | :target => user_participant_ref(action)).html_safe | 286 | :target => user_participant_ref(action)).html_safe |
| 285 | end | 287 | end |
| 288 | |||
| 289 | def summarize_redaktion_grant action | ||
| 290 | t("node_actions.redaktion_grant", :actor => actor_ref(action), | ||
| 291 | :target => user_participant_ref(action)).html_safe | ||
| 292 | end | ||
| 293 | |||
| 294 | def summarize_redaktion_revoke action | ||
| 295 | t("node_actions.redaktion_revoke", :actor => actor_ref(action), | ||
| 296 | :target => user_participant_ref(action)).html_safe | ||
| 297 | end | ||
| 286 | end | 298 | end |
