diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
commit | 9297781c79dbfe68a817474d0395001fd9746770 (patch) | |
tree | a1ef30b48f1c1c453ba37f9a2126fa58550f4b29 /assets/templates/image.html | |
parent | 0e2f57884b494aa676686db132994a3df2b73c70 (diff) | |
download | revela-9297781c79dbfe68a817474d0395001fd9746770.tar.gz revela-9297781c79dbfe68a817474d0395001fd9746770.zip |
Added basic builtin templates and css
Diffstat (limited to 'assets/templates/image.html')
-rw-r--r-- | assets/templates/image.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/assets/templates/image.html b/assets/templates/image.html new file mode 100644 index 0000000..8f7dd11 --- /dev/null +++ b/assets/templates/image.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block content %} +<div class="image-container"> + <a href="{{ image.source }}"><img class="full" src="{{ image.source }}"></a> + <div class="controls-container"> + {% if image.prev %} + <a class="control-btn" href="{{ image.prev }}">⮜ Previous</a> + {% else %} + <a class="control-btn hidden" href="#">⮜ Previous</a> + {% endif %} + {% if image.next %} + <a class="control-btn" href="{{ image.next }}">Next ⮞</a> + {% else %} + <a class="control-btn hidden" href="#">Next ⮞</a> + {% endif %} + </div> +</div> +<div class="gallery-container"> + <h3> + From <a href="{{ index }}/#{{ album.year }}">{{ album.year }}</a> + {% if album.title %} + <a href="{{ album.link }}">{{ album.title }}</a> + {% else %} + <a href="{{ album.link }}">Untitled</a> + {% endif %} + in <a href="{{ index }}/">{{ title }}</a> + </h3> + <p>Taken {{ image.date }}</p> +</div> +{% endblock %} + |