We remove duplication by doing so, and now we only need to add the call do render Admin::TableActionsComponent once.
14 lines
525 B
Plaintext
14 lines
525 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: "button success small-5" %>
|
|
<% end %>
|
|
|
|
<% if can_reject? %>
|
|
<%= link_to t("admin.organizations.index.reject"),
|
|
reject_admin_organization_path(organization, request.query_parameters),
|
|
method: :put, class: "button hollow alert small-5" %>
|
|
<% end %>
|
|
<% end %>
|