about summary refs log tree commit diff
path: root/templates/index.html
blob: 2b835e8eb71a419ebe37ed575d7d52afbde471ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
  <head>
    <title>Converse Index page</title>
  </head>
  <body>
    <h1>Welcome to Converse</h1>
    <ul>
      {% for thread in threads -%}
        <li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }})</li>
      {%- endfor %}
    </ul>
    <hr>
    <form action="/thread" method="post">
      <div>
        <label for="title">Title:</label>
        <input type="text" id="title" name="title">
      </div>
      <div>
        <label for="body">Content:</label>
        <textarea id="body" name="body"></textarea>
      </div>
      <div>
        <input type="submit" value="Submit">
      </div>
    </form>
  </body>
</html>