Sha256: b693b3222f6608544c4719f2d144b2cb4042537d2cd2794bc1e6fe202e4d9274
Contents?: true
Size: 1020 Bytes
Versions: 2
Compression:
Stored size: 1020 Bytes
Contents
<strong><%= user.name %>:</strong> <table class="table-list"> <tbody> <% current_organization.available_authorizations.each do |name| %> <% authorization = authorization_for(name) %> <tr> <td><%= I18n.t("decidim.authorization_handlers.#{name}.name", default: name) %></td> <td> <% if authorization&.granted? %> <span class="label success"><%= t ".granted" %></span> <% else %> <span class="label alert"><%= t ".not_granted" %></span> <% end %> </td> <td class="table-list__actions"> <% if managed?(name) %> <% if authorization&.granted? %> <%= icon_link_to "circle-x", user_authorization_path(user, name: name), t(".revoke"), method: :delete, role: "img", aria_label: t(".revoke") %> <% else %> <%= icon_link_to "circle-check", user_authorization_path(user, name: name), t(".grant"), method: :patch, role: "img", aria_label: t(".grant") %> <% end %> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems