Update year history (remove year in plot lines)
This commit is contained in:
parent
b478286f47
commit
b3c9642adc
1 changed files with 13 additions and 3 deletions
|
@ -25,7 +25,13 @@
|
|||
{% if date.sum_m or date.sum_p %}
|
||||
<tr {% if not date.month.month|divisibleby:"2" %}class="even"{% endif %}>
|
||||
<td class="icon">{% up_down_icon date.sum %}</td>
|
||||
<th class="date" scope="row">{% month_url date.month %}</th>
|
||||
<th class="date" scope="row">
|
||||
{% if year %}
|
||||
{% month_url date.month fmt="F" %}
|
||||
{% else %}
|
||||
{% month_url date.month %}
|
||||
{% endif %}
|
||||
</th>
|
||||
<td class="value">{{ date.sum_m|pmrvalue }}</td>
|
||||
<td class="bar m">{% plot_bar date.sum date.sum_m history.max.pm %}</td>
|
||||
<td class="bar p">{% plot_bar date.sum date.sum_p history.max.pm %}</td>
|
||||
|
@ -45,7 +51,9 @@
|
|||
<table class="full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{% translate "Year" %}</th>
|
||||
{% if not year %}
|
||||
<th scope="col">{% translate "Year" %}</th>
|
||||
{% endif %}
|
||||
{% calendar_head %}
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -53,7 +61,9 @@
|
|||
{% regroup history.data by month.year as years_list %}
|
||||
{% for y, year in years_list reversed %}
|
||||
<tr>
|
||||
<th class="date" scope="row">{% year_url y %}</th>
|
||||
{% if not year %}
|
||||
<th class="date" scope="row">{% year_url y %}</th>
|
||||
{% endif %}
|
||||
{% for m in year %}
|
||||
{% if forloop.parentloop.last and forloop.first %}
|
||||
{% empty_calendar_cells_start m.month.month %}
|
||||
|
|
Loading…
Reference in a new issue