summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoak <joak@nospace.at>2022-07-27 15:32:45 +0200
committerjoak <joak@nospace.at>2022-07-27 15:32:45 +0200
commit16d7bc374a693476d8e74b0e97b41aa27853caf6 (patch)
tree4bd36af15a9e1bb761694a4e4183ed6199519daa
parent303ccaa0ceccf9cbc57ec2cc7a0d7758e837ca38 (diff)
changes selected works
-rw-r--r--assets/static/style.css4
-rw-r--r--databags/translation.ini2
-rw-r--r--templates/layout.html2
-rw-r--r--templates/selected-works.html33
-rw-r--r--templates/works.html2
5 files changed, 41 insertions, 2 deletions
diff --git a/assets/static/style.css b/assets/static/style.css
index 7161e1e..1512921 100644
--- a/assets/static/style.css
+++ b/assets/static/style.css
@@ -147,6 +147,10 @@ tr:hover .workthumb {
position: fixed;
}
+.selectthumb {
+ padding-top: 8px;
+}
+
@keyframes flashy {
0% {background-color:#ffffff;}
50% {background-color:#ffaaaa;}
diff --git a/databags/translation.ini b/databags/translation.ini
index fccd86b..677b1f7 100644
--- a/databags/translation.ini
+++ b/databags/translation.ini
@@ -1,6 +1,7 @@
[en]
info = info
works = works
+selected works = works
contact = contact
log = log
exhibition = exhibition
@@ -31,6 +32,7 @@ curatings = curated events
[de]
info = Info
works = Arbeiten
+selected works = Arbeiten
contact = Kontakt
log = Log
exhibition = Ausstellung
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}}">