Use human_attribute_name in admin tables

To be consistent with the previous commit we update the text that appears
in the administration tables for discussions and proposals. Now instead of
"Proposals" and "Discussions" will appear "Title" which makes more sense
and is more consistent.
This commit is contained in:
taitus
2023-02-22 09:34:25 +01:00
parent 484e1da6d1
commit f100e01dd2
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
<table>
<thead>
<th class="text-center"><%= t("admin.debates.index.id") %></th>
<th><%= t("admin.debates.index.title") %></th>
<th><%= Debate.human_attribute_name(:title) %></th>
<th><%= t("admin.debates.index.author") %></th>
</thead>
<tbody>

View File

@@ -13,7 +13,7 @@
<thead>
<tr>
<th class="text-center"><%= t("admin.proposals.index.id") %></th>
<th><%= t("admin.proposals.index.title") %></th>
<th><%= Proposal.human_attribute_name(:title) %></th>
<th><%= t("admin.proposals.index.author") %></th>
<th><%= t("admin.proposals.index.milestones") %></th>
<th><%= t("admin.proposals.index.selected") %></th>