Correct budget stats age group id's and labels

This commit is contained in:
Bertocq
2017-06-30 15:32:30 +02:00
committed by Javi Martín
parent 88ac17cc1b
commit 6c214c266f

View File

@@ -135,9 +135,9 @@
<tbody>
<% all_ages_count = @stats[:age_groups].values.sum.to_f %>
<% @stats[:age_groups].each do |age_group, count| %>
<tr id="age_group_<%= age_group.gsub(" - ", "_to_") %>">
<tr id="age_group_<%= age_group.gsub(" - ", "_to_").gsub("+ ", "up_to_") %>">
<td class="border-right">
<%= age_group.gsub("+", t("budgets.stats.more_than")) + t("budgets.stats.years") %>
<%= age_group.gsub("+", t("budgets.stats.more_than")) + " " + t("budgets.stats.years") %>
</td>
<td class="border-left">
<strong>