From f2d1844b9dbb79953d17488c28b70677d0ceae20 Mon Sep 17 00:00:00 2001
From: Elena ``of Valhalla'' Grandi <valhalla@trueelena.org>
Date: Mon, 16 Nov 2020 08:54:09 +0100
Subject: Improve entry page

---
 templates/web/entry.html | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

(limited to 'templates/web/entry.html')

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 %}
 
-- 
cgit v1.2.3