forked from rc/aircox
calendar date is updated + correct today
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
<a href="{% url exp.name key="render" year=prev_month.year month=prev_month.month %}"
|
||||
onclick="return Section.load_event(event);"><</a>
|
||||
|
||||
<h3>{{ today|date:'F Y' }}</h3>
|
||||
<h3>{{ this_month|date:'F Y' }}</h3>
|
||||
|
||||
<a href="{% url exp.name key="render" year=next_month.year month=next_month.month %}"
|
||||
onclick="return Section.load_event(event);">></a>
|
||||
@ -19,7 +19,11 @@
|
||||
<div class="content">
|
||||
<div first_weekday="{{ first_weekday }}"> </div>
|
||||
{% for day, url in days %}
|
||||
<a href="{{ url }}" {% if day == today.day %}class="today"{% endif %}>{{ day }}</a>
|
||||
{% if day == today %}
|
||||
<a href="{{ url }}" weekday="{{ day.weekday }}" class="today">{{ day.day }}</a>
|
||||
{% else %}
|
||||
<a href="{{ url }}" weekday="{{ day.weekday }}">{{ day.day }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endspaceless %}
|
||||
|
Reference in New Issue
Block a user