Compare commits
2 commits
b478286f47
...
cc551c536c
Author | SHA1 | Date | |
---|---|---|---|
cc551c536c | |||
b3c9642adc |
2 changed files with 22 additions and 4 deletions
|
@ -25,7 +25,13 @@
|
||||||
{% if date.sum_m or date.sum_p %}
|
{% if date.sum_m or date.sum_p %}
|
||||||
<tr {% if not date.month.month|divisibleby:"2" %}class="even"{% endif %}>
|
<tr {% if not date.month.month|divisibleby:"2" %}class="even"{% endif %}>
|
||||||
<td class="icon">{% up_down_icon date.sum %}</td>
|
<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="value">{{ date.sum_m|pmrvalue }}</td>
|
||||||
<td class="bar m">{% plot_bar date.sum date.sum_m history.max.pm %}</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>
|
<td class="bar p">{% plot_bar date.sum date.sum_p history.max.pm %}</td>
|
||||||
|
@ -45,7 +51,9 @@
|
||||||
<table class="full-width">
|
<table class="full-width">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
{% if not year %}
|
||||||
<th scope="col">{% translate "Year" %}</th>
|
<th scope="col">{% translate "Year" %}</th>
|
||||||
|
{% endif %}
|
||||||
{% calendar_head %}
|
{% calendar_head %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -53,7 +61,9 @@
|
||||||
{% regroup history.data by month.year as years_list %}
|
{% regroup history.data by month.year as years_list %}
|
||||||
{% for y, year in years_list reversed %}
|
{% for y, year in years_list reversed %}
|
||||||
<tr>
|
<tr>
|
||||||
|
{% if not year %}
|
||||||
<th class="date" scope="row">{% year_url y %}</th>
|
<th class="date" scope="row">{% year_url y %}</th>
|
||||||
|
{% endif %}
|
||||||
{% for m in year %}
|
{% for m in year %}
|
||||||
{% if forloop.parentloop.last and forloop.first %}
|
{% if forloop.parentloop.last and forloop.first %}
|
||||||
{% empty_calendar_cells_start m.month.month %}
|
{% empty_calendar_cells_start m.month.month %}
|
||||||
|
|
|
@ -46,7 +46,15 @@
|
||||||
{% for invoice in trans.invoices %}<a href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>{% endfor %}
|
{% for invoice in trans.invoices %}<a href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
<td class="date">
|
<td class="date">
|
||||||
<time datetime="{{ trans.date|date:"Y-m-d" }}">{{ trans.date|date:"Y-m-d" }}</time>
|
<time datetime="{{ trans.date|date:"Y-m-d" }}">
|
||||||
|
{% if month %}
|
||||||
|
{{ trans.date|date:"l d"|capfirst }}
|
||||||
|
{% elif year %}
|
||||||
|
{{ trans.date|date:"d F" }}
|
||||||
|
{% else %}
|
||||||
|
{{ trans.date|date:"Y-m-d" }}
|
||||||
|
{% endif %}
|
||||||
|
</time>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row" class="l">
|
<th scope="row" class="l">
|
||||||
<a href="{{ trans.get_absolute_url }}">{{ trans.name }}</a>
|
<a href="{{ trans.get_absolute_url }}">{{ trans.name }}</a>
|
||||||
|
|
Loading…
Reference in a new issue