This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
1 |
{% extends "layout.html" %} |
2 |
{% block body %} |
3 |
{% if session.logged_in %} |
4 |
<form action="{{ url_for('add_entry') }}" method=post class=add-entry> |
5 |
<dl> |
6 |
<dt>Name: |
7 |
<dd><input type=text name=user> |
8 |
<dt>Title: |
9 |
<dd><input type=text size=30 name=title> |
10 |
<dt>Text: |
11 |
<dd><textarea name=text rows=5 cols=40></textarea> |
12 |
<dd><input type=submit value=Share> |
13 |
</dl> |
14 |
</form> |
15 |
{% endif %} |
16 |
<ul class=entries> |
17 |
{% for entry in entries %} |
18 |
{% if entry.who %} |
19 |
<li><a href={{ "/posts/"+entry.id }}><h2>{{ entry.title }}</h2></a>@<b>{{ entry.who }}</b> |
20 |
{{ entry.what }} {{ entry.where }} {{ entry.how|safe }} |
21 |
{% endif %} |
22 |
{% else %} |
23 |
<li><em>Unbelievable. No entries here so far</em> |
24 |
{% endfor %} |
25 |
</ul> |
26 |
{% endblock %} |