Skip to content

Commit

Permalink
Use human_attribute_name in admin tables
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
taitus committed Feb 22, 2023
1 parent 96ed5fc commit eb4944e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/debates/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/proposals/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit eb4944e

Please sign in to comment.