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:
@@ -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>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user