When we see a list of, let's say, banners, and each one has a link to edit them, the word "banner" in the text "edit banner" is redundant and adds noise; even for users with cognitive disabilities, it's obvious that the "edit" link refers to the banner.
23 lines
1010 B
Plaintext
23 lines
1010 B
Plaintext
<%= render Admin::TableActionsComponent.new(budget,
|
|
destroy_confirmation: t("admin.actions.confirm_delete", resource_name: t("admin.budgets.shared.resource_name"),
|
|
name: budget.name)
|
|
) do %>
|
|
<%= link_to t("admin.budgets.index.budget_investments"),
|
|
admin_budget_budget_investments_path(budget_id: budget.id),
|
|
class: "investments-link" %>
|
|
<%= link_to t("admin.budgets.index.edit_groups"),
|
|
admin_budget_groups_path(budget),
|
|
class: "groups-link" %>
|
|
<% if budget.poll.present? %>
|
|
<%= link_to t("admin.budgets.index.admin_ballots"),
|
|
admin_poll_booth_assignments_path(budget.poll),
|
|
class: "ballots-link" %>
|
|
<% else %>
|
|
<%= link_to_create_budget_poll %>
|
|
<% end %>
|
|
<%= link_to t("admin.budgets.actions.preview"),
|
|
budget_path(budget),
|
|
target: "_blank",
|
|
class: "preview-link" %>
|
|
<% end %>
|