Add sorting links to table headers with proper styling [#2931]

This commit is contained in:
Anna Anks Nowak
2018-12-30 22:01:01 +01:00
committed by Javi Martín
parent 90a66239a5
commit ea3319ae6f
2 changed files with 7 additions and 3 deletions

View File

@@ -215,6 +215,10 @@ $sidebar-active: #f4fcd0;
thead {
color: #fff;
a {
color: inherit;
}
}
th {

View File

@@ -35,9 +35,9 @@
<table class="table-for-mobile">
<thead>
<tr>
<th><%= t("admin.budget_investments.index.list.id") %></th>
<th class="small-3"><%= t("admin.budget_investments.index.list.title") %></th>
<th><%= t("admin.budget_investments.index.list.supports") %></th>
<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><%= t("admin.budget_investments.index.list.admin") %></th>
<th>
<%= t("admin.budget_investments.index.list.valuation_group") %>