summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/node_actions_helper.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb
index 4cbe741c..f57ef84f 100644
--- a/app/helpers/node_actions_helper.rb
+++ b/app/helpers/node_actions_helper.rb
@@ -18,7 +18,9 @@ module NodeActionsHelper
18 "asset_destroy" => "file-x", 18 "asset_destroy" => "file-x",
19 "otp_enroll" => "shield-lock", 19 "otp_enroll" => "shield-lock",
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",
23 "user_reactivate" => "user-check"
22 }.freeze 24 }.freeze
23 25
24 def verb_icon action 26 def verb_icon action
@@ -271,4 +273,14 @@ module NodeActionsHelper
271 t("node_actions.otp_reset", :actor => actor_ref(action), 273 t("node_actions.otp_reset", :actor => actor_ref(action),
272 :target => user_participant_ref(action)).html_safe 274 :target => user_participant_ref(action)).html_safe
273 end 275 end
276
277 def summarize_user_deactivate action
278 t("node_actions.user_deactivate", :actor => actor_ref(action),
279 :target => user_participant_ref(action)).html_safe
280 end
281
282 def summarize_user_reactivate action
283 t("node_actions.user_reactivate", :actor => actor_ref(action),
284 :target => user_participant_ref(action)).html_safe
285 end
274end 286end