1 <% UserRole::ALL_ROLES.each do |role| %>
2 <% if current_user&.administrator? %>
3 <% if @user.role?(role) %>
4 <%= link_to inline_svg_tag("icons/role-star.svg", :class => "role-icon #{role}",
5 :title => t(".revoke.#{role}")),
6 user_role_path(@user, role),
8 :data => { :confirm => t(".revoke.are_you_sure", :name => @user.display_name, :role => role) } %>
10 <%= link_to inline_svg_tag("icons/role-star.svg", :class => "role-icon #{role} inactive",
11 :title => t(".grant.#{role}")),
12 user_role_path(@user, role),
14 :data => { :confirm => t(".grant.are_you_sure", :name => @user.display_name, :role => role) } %>
16 <% elsif @user.role?(role) %>
17 <%= inline_svg_tag "icons/role-star.svg", :class => "role-icon #{role}",
18 :title => t(".title.#{role}") %>