diff options
Diffstat (limited to 'templates/web/entry.html')
-rw-r--r-- | templates/web/entry.html | 20 |
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 %} |