diff options
author | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
---|---|---|
committer | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
commit | f60e9ccd5b046101903a79bf6afa0cf87fdd956c (patch) | |
tree | db29d0f55a1bc3347b63341551fa05308554101d /templates/info.html |
init
Diffstat (limited to 'templates/info.html')
-rw-r--r-- | templates/info.html | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/templates/info.html b/templates/info.html new file mode 100644 index 0000000..fc37ab5 --- /dev/null +++ b/templates/info.html @@ -0,0 +1,96 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} + <div class="pagefull"> + <div class="info"> + <h1>{{ bag('translation', this.alt, 'info') }}</h1> + {{ this.body }} + </div> + <div class="exhibitions"> + <h1>{{ bag('translation', this.alt, 'exhibitions') }}</h1> + <table style="width:100%"> + <tr> + <th></th> + <th></th> + <th></th> + <th></th> + </tr> + {% set exhibitions = site.query('/exhibitions').all() %} + {% for exhibition in exhibitions %} + <tr class="exhibition"> + {% set gif = exhibition.attachments.images.get(exhibition.thumbnail) %} + <td class="listdate">{% if exhibition.thumbnail %}<img src="{{ gif.thumbnail(200)|url }}" class="workthumb">{% endif %}<a href="{{exhibition|url}}">{{ exhibition.date_start|dateformat('Y-MM-dd') }} - {{ exhibition.date_end|dateformat('Y-MM-dd') }}</a></td> + <td><a href="{{exhibition|url}}">{{ exhibition.title }}</a></td> + <td><a href="{{exhibition|url}}">{{ exhibition.venue}}, {{exhibition.place}}, {{exhibition.country}}</a></td> + <td class="listformat"><a href="{{exhibition|url}}">{{ exhibition.comment}}</a></td> + </tr> + {% endfor %} + </table> + </div> + <div class="performances"> + <h1>{{ bag('translation', this.alt, 'performances') }}</h1> + <table style="width:100%"> + <tr> + <th></th> + <th></th> + <th></th> + <th></th> + </tr> + {% set performances = site.query('/performances').all() %} + {% for performance in performances %} + <tr class="performances"> + {% set gif = performance.attachments.images.get(performance.thumbnail) %} + <td class="listdate">{% if performance.thumbnail %}<img src="{{ gif.thumbnail(200)|url }}" class="workthumb">{% endif %}<a href="{{performance|url}}">{{ performance.date_start|dateformat('Y-MM-dd') }}</a></td> + <td><a href="{{performance|url}}">{{ performance.title|truncate(70, False, ' ...', 0) }}</a></td> + {% set location = performance.venue +", "+performance.place+", "+performance.country %} + <td><a href="{{performance|url}}">{{ location|truncate(50, False, ' ...', 0)}}</a></td> + <td class="listformat"><a href="{{performance|url}}">{{ performance.comment|truncate(50, False, ' ...', 0)}}</a></td> + </tr> + {% endfor %} + </table> + </div> + <div class="lectures"> + <h1>{{ bag('translation', this.alt, 'lectures') }} </h1> + <table style="width:100%"> + <tr> + <th></th> + <th></th> + <th></th> + </tr> + {% set lectures = site.query('/lectures').all() %} + {% for lecture in lectures %} + <tr class="lectures"> + {% set gif = lecture.attachments.images.get(lecture.thumbnail) %} + <td class="listdate">{% if lecture.thumbnail %}<img src="{{ gif.thumbnail(200)|url }}" class="workthumb">{% endif %}<a href="{{lecture|url}}">{{ lecture.date|dateformat('Y-MM-dd') }}</a></td> + <td><a href="{{lecture|url}}">{{ lecture.title|truncate(70, False, ' ...', 0) }}</a></td> + {% set location = lecture.venue +", "+lecture.place+", "+lecture.country %} + <td ><a href="{{lecture|url}}">{{ location|truncate(60, False, ' ...', 0)}}</a></td> + <td class="listformat"><a href="{{lecture|url}}">{{ lecture.comment|truncate(50, False, ' ...', 0)}}</a></td> + + </tr> + {% endfor %} + </table> + </div> + <div class="curatings"> + <h1>{{ bag('translation', this.alt, 'curatings') }}</h1> + <table style="width:100%"> + <tr> + <th></th> + <th></th> + <th></th> + <th></th> + </tr> + {% set curatings = site.query('/curating').all() %} + {% for curating in curatings %} + <tr class="curating"> + {% set gif = curating.attachments.images.get(curating.thumbnail) %} + <td class="listdate">{% if curating.thumbnail %}<img src="{{ gif.thumbnail(200)|url }}" class="workthumb">{% endif %}<a href="{{curating|url}}">{{ curating.date_start|dateformat('Y-MM-dd') }} - {{ curating.date_end|dateformat('Y-MM-dd') }}</a></td> + <td><a href="{{curating|url}}">{{ curating.title }}</a></td> + <td><a href="{{curating|url}}">{{ curating.venue}}, {{curating.place}}, {{curating.country}}</a></td> + <td class="listformat"><a href="{{curating|url}}">{{ curating.comment}}</a></td> + </tr> + {% endfor %} + </table> + </div> + </div> +{% endblock %} |