diff options
Diffstat (limited to 'templates/works.html')
-rw-r--r-- | templates/works.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/works.html b/templates/works.html new file mode 100644 index 0000000..bb22aa6 --- /dev/null +++ b/templates/works.html @@ -0,0 +1,47 @@ +{% 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 %} + <tr class="works {% if work.selected %}flash{% endif %}" {% if work.selected %}{% set r = range(10, 60) | random/10 %}style="animation-duration: {{r}}s;"{% 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}}"> + {% for item in work.content.blocks %} + {% if item._flowblock == 'gallery' %} + {% for i in item.gallery.blocks %} + {% if i._flowblock == 'picture' %} + {% set img = work.attachments.images.get(i.url) %} +<!-- + 📷 +--> + <img src="{{ img.thumbnail(10)|url }}" alt="{{ this.caption }}"/> + {% endif %} + {% if i._flowblock == 'galleryvideo' %} + 🎥 + {% endif %} + {% endfor %} + {% endif %} + {% if item._flowblock == 'video' %} + 🎥 + {% endif %} + {% endfor %} + </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> + {% endfor %} + </table> + </div> +{% endblock %} |