Note the CSS could probably be improved to avoid duplication with other button style definitions. However, that's fine because we're going to change the style of the links soon. For the same reason, I haven't bothered to style every single link the way it was until now.
14 lines
498 B
Plaintext
14 lines
498 B
Plaintext
<%= render Admin::TableActionsComponent.new(actions: []) do %>
|
|
<% if can_verify? %>
|
|
<%= link_to t("admin.organizations.index.verify"),
|
|
verify_admin_organization_path(organization, request.query_parameters),
|
|
method: :put, class: "verify-link" %>
|
|
<% end %>
|
|
|
|
<% if can_reject? %>
|
|
<%= link_to t("admin.organizations.index.reject"),
|
|
reject_admin_organization_path(organization, request.query_parameters),
|
|
method: :put, class: "reject-link" %>
|
|
<% end %>
|
|
<% end %>
|