Skip to content

Commit

Permalink
Reduce redundancy on add_role action text
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed Mar 2, 2023
1 parent 08158fa commit 05228b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/api/app/views/webui/request/_action_text.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
%p.mt-0.mb-0.fw-normal
%span.me-2 ##{action_index + 1}
- if action.type == 'add_role'
#{action.type.titleize} for
= project_or_package_text(action.target_project, action.target_package)
#{action.type.titleize}
- else
= action.name
-# add_role, delete and set_bugowner are actions on the target repo, so they don't need to mention where they are coming from
- unless %w[delete set_bugowner].include?(action.type)
%p.mb-0.mt-0.small
- if action.type == 'add_role'
#{action.person_name} as #{action.role} for
Add #{action.person_name} as #{action.role} of
= project_or_package_text(action.target_project, action.target_package)
- else
from
Expand Down

0 comments on commit 05228b6

Please sign in to comment.