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