diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 2 | ||||
-rw-r--r-- | templates/thread.html | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html index 566715248a80..9faee49ca1f0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ <h1>Welcome to Converse</h1> <ul> {% for thread in threads -%} - <li>{{ thread.title }} (posted at {{ thread.posted }})</li> + <li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }})</li> {%- endfor %} </ul> </body> diff --git a/templates/thread.html b/templates/thread.html new file mode 100644 index 000000000000..e841668bfe41 --- /dev/null +++ b/templates/thread.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <title>Converse: {{ thread.title }}</title> + </head> + <body> + <h1>{{ thread.title }}</h1> + + <p>{{ thread.body }}<br><i>Posted at {{ thread.posted }}</i></p> + {% for post in posts -%} + <li>{{ post.body }}<br><i>Posted at {{ post.posted }}</i></p> + {%- endfor %} + </body> +</html> |