Refactor by creating a helper method for generating sorting links [#2931]

This commit is contained in:
Anna Anks Nowak
2018-12-30 23:18:11 +01:00
committed by Javi Martín
parent ea3319ae6f
commit 22059379f5
2 changed files with 8 additions and 3 deletions

View File

@@ -35,9 +35,9 @@
<table class="table-for-mobile">
<thead>
<tr>
<th><%= link_to t("admin.budget_investments.index.list.id"), admin_budget_budget_investments_path(sort_by: "id") %></th>
<th class="small-3"><%= link_to t("admin.budget_investments.index.list.title"), admin_budget_budget_investments_path(sort_by: "title") %></th>
<th><%= link_to t("admin.budget_investments.index.list.supports"), admin_budget_budget_investments_path(sort_by: "supports") %></th>
<th><%= link_to_investments_sorted_by t("admin.budget_investments.index.list.id") %></th>
<th class="small-3"><%= link_to_investments_sorted_by t("admin.budget_investments.index.list.title") %></th>
<th><%= link_to_investments_sorted_by t("admin.budget_investments.index.list.supports") %></th>
<th><%= t("admin.budget_investments.index.list.admin") %></th>
<th>
<%= t("admin.budget_investments.index.list.valuation_group") %>