aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-11-16 08:54:09 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-11-16 08:54:09 +0100
commitf2d1844b9dbb79953d17488c28b70677d0ceae20 (patch)
tree3772c0509911208bfeb1a568638791b03b0966df /templates
parent74f9c6a49fad7fd6dba3d56ec525dc6ece1894d1 (diff)
Improve entry page
Diffstat (limited to 'templates')
-rw-r--r--templates/web/entry.html20
1 files changed, 15 insertions, 5 deletions
diff --git a/templates/web/entry.html b/templates/web/entry.html
index df641d0..a8edf4c 100644
--- a/templates/web/entry.html
+++ b/templates/web/entry.html
@@ -7,12 +7,22 @@
<h1>{{ settings.name }}</h1>
<nav><a href="{{ url_for('index') }}">home</a></nav>
</header>
- <h3>{{ entry }}</h3>
+ <h3>{{ entry.data.name }}</h3>
<dl>
- {% for k,v in entry.data.items() %}
- <dt>{{ k }}</dt>
- <dd>{{ v }}</dd>
- {% endfor %}
+ <dt>url</dt>
+ <dd><a href="{{ entry.data.url }}">{{ entry.data.url }}</a></dd>
+ <dt>sells</dt>
+ <dd><ul>{% for s in entry.data.sells %}
+ <li>{{ s }}</li>
+ {% endfor %}</ul></dd>
+ <dt>country</dt>
+ <dd>{{ entry.data.country }}</dt>
+ <dt>address</dt>
+ <dd>{{ entry.data.address }}</dd>
+ <dt>comments</dt>
+ <dd>{{ entry.data.comments }}</dd>
+ <dt>id</dt>
+ <dd>{{ entry.data.short_id }}</dd>
</dl>
{% endblock %}