feat(main/templates): Add barebones single-thread view
This commit is contained in:
parent
7dca9183c5
commit
6e56f8e729
4 changed files with 43 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
14
templates/thread.html
Normal file
14
templates/thread.html
Normal file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue