summaryrefslogtreecommitdiff
path: root/templates/selected-works.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/selected-works.html')
-rw-r--r--templates/selected-works.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/selected-works.html b/templates/selected-works.html
new file mode 100644
index 0000000..eaf7b8d
--- /dev/null
+++ b/templates/selected-works.html
@@ -0,0 +1,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 %}