diff options
author | joak <joak@nospace.at> | 2022-07-27 15:32:45 +0200 |
---|---|---|
committer | joak <joak@nospace.at> | 2022-07-27 15:32:45 +0200 |
commit | 16d7bc374a693476d8e74b0e97b41aa27853caf6 (patch) | |
tree | 4bd36af15a9e1bb761694a4e4183ed6199519daa /templates/selected-works.html | |
parent | 303ccaa0ceccf9cbc57ec2cc7a0d7758e837ca38 (diff) |
changes selected works
Diffstat (limited to 'templates/selected-works.html')
-rw-r--r-- | templates/selected-works.html | 33 |
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 %} |