summaryrefslogtreecommitdiff
path: root/templates/selected-works.html
blob: eaf7b8d53d24ab39b0017d13fe624be10cf5dff9 (plain)
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
{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
    <!-- {{this.title}} -->
            {% set works = site.get('/works', this.alt) %}
            <div class="pagefull">
				<table style="width:100%">
					<tr>
						<th>🗒</th>
						<th>🔧🔨🔬🖥🔊</th>
						<th>🕛</th>
						<th>?</th>
					</tr>
					

					{% for work in works.children %}
					{% if work.selected  %}
					<tr class="works {% if work.selected %}{% endif %}" 	{% if work.selected %}{% endif %}>
						{% set gif = work.attachments.images.get(work.thumbnail) %}
						<td><a href="{{work|url}}">{{work.title}}</a></td>
						<td><a href="{{work|url}}">
							<img src="{{ gif.thumbnail(100)|url }}" class="selectthumb">
						</a></td>
						<td><a href="{{work|url}}">{{ work.year_start|dateformat('Y-MM-dd') }} - {% if work.ongoing == True %}{{ bag('translation', this.alt, 'ongoing') }}{% else %} {{ work.year_end|dateformat('Y-MM-dd') }} {% endif %}</a></td>
						<td><a href="{{work|url}}">{% if work.format %}{{work.format}}{% endif %}</a></td>
					</tr>
					{% endif %}
					{% endfor %}
				</table>
				{% if this.alt == "en" %}<p>Almost all other works can be found <a href="/works">here!</a></p>{% endif %}
				{% if this.alt == "de" %}<p>Fast alle anderen Arbeiten sind <a href="/works">hier!</a></p>{% endif %}
            </div>
{% endblock %}