bundled/flask/examples/flaskr/templates/show_entries.html @ 3c3734c184d9
Use revsets to find newer and older cset of the current changeset.
With obsolescence markers enabled, rev numbers are not linear
author |
Christophe de Vienne <cdevienne@gmail.com> |
date |
Mon, 27 Oct 2014 22:38:16 +0100 |
parents |
f33efe14bff1 |
children |
(none) |
{% extends "layout.html" %}
{% block body %}
{% if session.logged_in %}
<form action="{{ url_for('add_entry') }}" method=post class=add-entry>
<dl>
<dt>Title:
<dd><input type=text size=30 name=title>
<dt>Text:
<dd><textarea name=text rows=5 cols=40></textarea>
<dd><input type=submit value=Share>
</dl>
</form>
{% endif %}
<ul class=entries>
{% for entry in entries %}
<li><h2>{{ entry.title }}</h2>{{ entry.text|safe }}
{% else %}
<li><em>Unbelievable. No entries here so far</em>
{% endfor %}
</ul>
{% endblock %}