2018-06-25 07:01:13 +00:00
|
|
|
|
<table class="calendar">
|
|
|
|
|
<thead>
|
2018-07-02 13:07:53 +00:00
|
|
|
|
<tr class="sizer">
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
2018-06-25 07:01:13 +00:00
|
|
|
|
<tr class="month">
|
2018-07-02 08:53:15 +00:00
|
|
|
|
<td>
|
2018-07-24 06:28:04 +00:00
|
|
|
|
<a href="{{ url_for('hello', date=calendar.prev_year.timestamp()) }}">« {{ calendar.prev_year_year }}</a>
|
2018-07-02 08:53:15 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2018-07-24 06:28:04 +00:00
|
|
|
|
<a href="{{ url_for('hello', date=calendar.prev_month.timestamp()) }}">‹ {{ calendar.prev_month_name }}</a>
|
2018-07-02 08:53:15 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td colspan="3" class="month-name">
|
|
|
|
|
{% if not calendar.has_today %}
|
|
|
|
|
<a href="{{ url_for('hello', date=now_ts) }}">
|
|
|
|
|
{% endif %}
|
|
|
|
|
{{ calendar.month }}
|
|
|
|
|
{% if not calendar.has_today %}
|
|
|
|
|
</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2018-07-24 06:28:04 +00:00
|
|
|
|
<a href="{{ url_for('hello', date=calendar.next_month.timestamp()) }}">{{ calendar.next_month_name }} ›</a>
|
2018-07-02 08:53:15 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2018-07-24 06:28:04 +00:00
|
|
|
|
<a href="{{ url_for('hello', date=calendar.next_year.timestamp()) }}">{{ calendar.next_year_year }} »</a>
|
2018-07-02 08:53:15 +00:00
|
|
|
|
</td>
|
2018-06-25 07:01:13 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="days">
|
|
|
|
|
{% for day in calendar.day_names %}
|
|
|
|
|
<td>
|
|
|
|
|
{{ day }}
|
|
|
|
|
</td>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% set markers = namespace() -%}
|
|
|
|
|
{% set markers.first = true -%}
|
|
|
|
|
{% for day in calendar.days -%}
|
|
|
|
|
{% if loop.index0 % (calendar.day_names) | length == 0 -%}
|
|
|
|
|
{% if not markers.first %}
|
|
|
|
|
</tr>
|
|
|
|
|
{%- else %}
|
|
|
|
|
{%- set markers.first = false %}
|
|
|
|
|
{%- endif %}
|
|
|
|
|
<tr class="week">
|
|
|
|
|
{%- endif %}
|
2018-07-02 08:53:15 +00:00
|
|
|
|
<td class="{% if day.month != calendar.timestamp.month %} other-month{% endif %}{% if day.date() == now.date() %} today{% endif %}">
|
2018-06-25 07:01:13 +00:00
|
|
|
|
<span class="day-num">{{ day.day }}</span>
|
2018-07-11 10:55:49 +00:00
|
|
|
|
{% for event in calendar.day_events(day, user=current_user if user_only else none) %}
|
2018-07-09 10:11:51 +00:00
|
|
|
|
<a href="{{ url_for('event_details', event_uuid=event.event_uuid) }}" class="event">
|
2018-07-21 04:50:17 +00:00
|
|
|
|
{% if not event.all_day %}
|
2018-07-03 10:09:15 +00:00
|
|
|
|
{{ event.start_time_for_user(current_user).strftime('%H:%M') }}–{{ event.end_time_for_user(current_user).strftime('%H:%M') }}
|
2018-07-21 04:50:17 +00:00
|
|
|
|
{% endif %}
|
2018-06-29 14:14:35 +00:00
|
|
|
|
{{ event.title }}
|
2018-07-03 12:22:03 +00:00
|
|
|
|
</a>
|
2018-06-29 14:14:35 +00:00
|
|
|
|
{% endfor %}
|
2018-06-25 07:01:13 +00:00
|
|
|
|
</td>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|