calendar; init rel_post issue

This commit is contained in:
bkfox
2016-06-29 02:23:56 +02:00
parent 3d8abd9df8
commit dd2ccac3c0
6 changed files with 86 additions and 13 deletions

View File

@ -1,25 +1,28 @@
{% extends "aircox/cms/website.html" %}
{% block header %}
{% spaceless %}
<header>
<a href="{% url exp.name key="render" year=prev_month.year month=prev_month.month %}"
onclick="return Section.load_event(event);">&lt;</a>
<time>{{ month|date:'F Y' }}</time>
<h3>{{ today|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);">&gt;</a>
</header>
{% endspaceless %}
{% endblock %}
{% block content %}
{% spaceless %}
<div class="content">
<div first_weekday="{{ first_weekday }}">
{% for day, url in days %}
<a href="{{ url }}">{{ day }}</a>
{% endfor %}
</div>
<div first_weekday="{{ first_weekday }}">&nbsp;</div>
{% for day, url in days %}
<a href="{{ url }}" {% if day == today.day %}class="today"{% endif %}>{{ day }}</a>
{% endfor %}
</div>
{% endspaceless %}
{% endblock %}