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
    <li><a href={{ "/posts/"+entry.id }}><h2>{{ entry.title }}</h2></a>@<b>{{ entry.who }}</b>
19
			{{ entry.what }} {{ entry.where }} {{ entry.how|safe }}
20
  {% else %}
21
    <li><em>Unbelievable.  No entries here so far</em>
22
  {% endfor %}
23
  </ul>
24
{% endblock %}