diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 2 | ||||
-rw-r--r-- | templates/selected-works.html | 33 | ||||
-rw-r--r-- | templates/works.html | 2 |
3 files changed, 35 insertions, 2 deletions
diff --git a/templates/layout.html b/templates/layout.html index f7bde33..4ce10e6 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -17,7 +17,7 @@ <ul class="mainmenu menu top"> <li><a class="{% if this._path == '/' %} active{% endif %}" href="{{ '/'|url }}">joak</a></li> {% for href, title in [ - ['/works', 'works'], + ['/selected-works', 'selected works'], ['/info', 'info'], ['/contact', 'contact'] ] %} 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 %} diff --git a/templates/works.html b/templates/works.html index bb22aa6..155af0b 100644 --- a/templates/works.html +++ b/templates/works.html @@ -14,7 +14,7 @@ {% for work in works.children %} - <tr class="works {% if work.selected %}flash{% endif %}" {% if work.selected %}{% set r = range(10, 60) | random/10 %}style="animation-duration: {{r}}s;"{% endif %}> + <tr class="works {% if work.selected %}{% endif %}" {% if work.selected %}{% endif %}> {% set gif = work.attachments.images.get(work.thumbnail) %} <td><img src="{{ gif.thumbnail(200)|url }}" class="workthumb"><a href="{{work|url}}">{{work.title}}</a></td> <td><a href="{{work|url}}"> |