diff options
author | Étienne Loks <etienne@peacefrogs.net> | 2019-07-17 10:42:26 +0200 |
---|---|---|
committer | Étienne Loks <etienne@peacefrogs.net> | 2019-07-17 10:42:26 +0200 |
commit | 68093c0cfa09735f4c6a9b7de0346ac3282730ee (patch) | |
tree | af31ab0e4bd4c589e86ec866000c3bd18700630b /showcase/templates | |
download | ishtar-pergamon-68093c0cfa09735f4c6a9b7de0346ac3282730ee.tar.bz2 ishtar-pergamon-68093c0cfa09735f4c6a9b7de0346ac3282730ee.zip |
Initial commit
Diffstat (limited to 'showcase/templates')
-rw-r--r-- | showcase/templates/showcase/item-find.html | 12 | ||||
-rw-r--r-- | showcase/templates/showcase/show_case.html | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/showcase/templates/showcase/item-find.html b/showcase/templates/showcase/item-find.html new file mode 100644 index 0000000..3cd3b6f --- /dev/null +++ b/showcase/templates/showcase/item-find.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% load i18n static wagtailcore_tags wagtailimages_tags %} + +{% block body_class %}template-showcase{% endblock %} + +{% block content %} +<main> + {{denomination}} + <img src="{{images.0.thumbnail}}"> +</main> + +{% endblock %} diff --git a/showcase/templates/showcase/show_case.html b/showcase/templates/showcase/show_case.html new file mode 100644 index 0000000..4940b43 --- /dev/null +++ b/showcase/templates/showcase/show_case.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% load i18n static wagtailcore_tags wagtailimages_tags %} + +{% block body_class %}template-showcase{% endblock %} + +{% block content %} +<main> + {% image page.image width-500 %} + {{ page.body|richtext }} + {% if page.data %}<ul> + {% for item in page.data %} + <li> + <a href="{% url 'display-item' page.slug forloop.counter0 %}"> + {{item.denomination}} + <img src="{{item.images.0.thumbnail}}"> + </a> + </li> + {% endfor %} + </ul>{% endif %} +</main> + +{% endblock %} |