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>Who:</dt>
7
        <dd><input type="text" name="who"></dd>
8
        <dt>What:</dt>
9
        <dd><input type="text" size="30" name="what"></dd>
10
        <dt>Where:</dt>
11
        <dd><input type="text" size="30" name="where"></dd>
12
        <dt>How:</dt>
13
        <dd><textarea name="how" rows="6" cols="40"></textarea></dd>
14
        <dd><input type="submit" value=" Submit "></dd>
15
      </dl>
16
    </form>
17
  {% endif %}
18
  <ul class=entries>
19
  {% for entry in entries %}
20
    <li>
21
      @<b>{{ entry.who }}</b>
22
      <b>#{{ entry.what }}</b> /{{ entry.where }} {{ entry.how|safe }}
23
      <a class="pull-right" href={{ "/posts/"+entry.id }}>
24
        <i class="icon-share-alt"></i>
25
      </a>
26
    </li>
27
  {% else %}
28
    <li><em>Unbelievable.  No entries here so far</em></li>
29
  {% endfor %}
30
  </ul>
31
{% endblock %}