Added year button to events. Fixed oneday month hightlighting
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<a draggable="false" class="arrow left" disabled></a>
|
||||
{% endif %}
|
||||
|
||||
<h2 class="year">Год {{year_data.number}}-й, {{month_data.name}}{% if not month_data.is_oneday %}, день {{day}}-й{% endif %}</h2>
|
||||
<h2 class="year"> <a draggable="false" class="button year" href="{{root}}{{year_data.number}}"><br>Год {{year_data.number}}-й</a><div>{{month_data.name}}{% if not month_data.is_oneday %}, день {{day}}-й{% endif %}</div></h2>
|
||||
|
||||
{% if next_day %}
|
||||
<a draggable="false" class="arrow right" href="{{root}}{{next_day.year}}/{{next_day.month}}/{{next_day.day}}"></a>
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
<div class="month">
|
||||
<table class="month">
|
||||
<tr>
|
||||
{% if not month.is_oneday %}
|
||||
<th colspan="10" class="title">
|
||||
{% if not month.is_oneday %}
|
||||
{{month.name}}
|
||||
{{month.name}}
|
||||
{% else %}
|
||||
{% if month.days.0.event_counts %}
|
||||
<th colspan="10" class="title with_events">
|
||||
{% else %}
|
||||
<a href="{{year_data.number}}/{{month.number}}/{{1}}">{{month.name}}</a>
|
||||
<th colspan="10" class="title">
|
||||
{% endif %}
|
||||
<a href="{{root}}{{year_data.number}}/{{month.number}}/{{1}}">{{month.name}}</a>
|
||||
{% endif %}
|
||||
</th>
|
||||
</tr>
|
||||
{% if month.folkname %}
|
||||
|
||||
Reference in New Issue
Block a user