Remove redundant words in edit and destroy links

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.
This commit is contained in:
Javi Martín
2021-05-30 15:01:53 +02:00
parent 25e9065913
commit 7d590031f5
23 changed files with 25 additions and 60 deletions

View File

@@ -31,8 +31,7 @@
<td>
<%= render Admin::TableActionsComponent.new(phase,
actions: [:edit],
edit_path: edit_path(phase),
edit_text: t("admin.budgets.edit.edit_phase")
edit_path: edit_path(phase)
) %>
</td>
</tr>

View File

@@ -1,5 +1,4 @@
<%= render Admin::TableActionsComponent.new(budget,
edit_text: t("admin.budgets.index.edit_budget"),
destroy_confirmation: t("admin.actions.confirm_delete", resource_name: t("admin.budgets.shared.resource_name"),
name: budget.name)
) do %>