-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendar_entry_list_year.html
46 lines (42 loc) · 1.06 KB
/
calendar_entry_list_year.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends "calingen/app_base.html" %}
{% block page_title %}Base: EventListYear{% endblock page_title %}
{% block main %}
<h2>
Event List for Year
<a href="{% url "calingen:calendar-entry-list-year" profile_id target_year|add:"-1" %}">«</a>
{{ target_year }}
<a href="{% url "calingen:calendar-entry-list-year" profile_id target_year|add:"1" %}">»</a>
</h2>
<section>
<table class="list_view">
{% if entries %}
<tr>
<th>Title</th>
<th>Start</th>
<th>Category</th>
<th>Source</th>
</tr>
{% for entry in entries %}
<tr>
<td>
{{ entry.title }}
</td>
<td>{{ entry.timestamp|date:"c" }}</td>
<td>{{ entry.category.label }}</td>
<td>
{% if entry.source.0 == "INTERNAL" %}
<a href="{{ entry.source.1 }}">Event Detail</a>
{% else %}
{{ entry.source.1 }}
{% endif %}
</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td>Could not fetch entry list.</td>
</tr>
{% endif %}
</table>
</section>
{% endblock main %}