Use human attribute name on cards table

We were defining the same texts in three places: admin.homepage.cards,
admin.site_customization.pages.cards and activerecord attributes.
This commit is contained in:
Javi Martín
2021-01-06 20:14:58 +01:00
parent 4c0bb894eb
commit b6f133b6c8
4 changed files with 6 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
<table>
<thead>
<tr>
<th><%= t("admin.homepage.cards.title") %></th>
<th class="small-4"><%= t("admin.homepage.cards.description") %></th>
<th><%= t("admin.homepage.cards.link_text") %> / <%= t("admin.homepage.cards.link_url") %></th>
<th><%= Widget::Card.human_attribute_name(:title) %></th>
<th class="small-4"><%= Widget::Card.human_attribute_name(:description) %></th>
<th><%= Widget::Card.human_attribute_name(:link_text) %> / <%= Widget::Card.human_attribute_name(:link_url) %></th>
<th><%= t("admin.shared.image") %></th>
<th class="small-3"><%= t("admin.shared.actions") %></th>
</tr>