summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html15
-rw-r--r--templates/post.html8
-rw-r--r--templates/view_thread.html4
3 files changed, 13 insertions, 14 deletions
diff --git a/templates/index.html b/templates/index.html
index 9a05e7a..b18ca34 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,11 +1,12 @@
{% extends 'base.html' %}
{% block content %}
- <h2>Posts</h2>
- <ul>
- {% for post in posts %}
- <li><a href="{{ url_for('post', post_id=post.id) }}">{{ post.title }}</a> - {{ post.created_at.strftime('%Y-%m-%d') }}</li>
- {% endfor %}
- </ul>
- <a href="{{ url_for('create') }}">Create a new post</a>
+<h2>Posts</h2>
+<ul>
+ {% for post in posts %}
+ <li><a href="{{ url_for('thread', post_id=post.id) }}">{{ post.title }}</a> - {{
+ post.created_at.strftime('%Y-%m-%d') }}</li>
+ {% endfor %}
+</ul>
+<a href="{{ url_for('create') }}">Create a new post</a>
{% endblock %} \ No newline at end of file
diff --git a/templates/post.html b/templates/post.html
index 4d37ed9..5e14c52 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -26,13 +26,9 @@
{% endif %}
<h2>{{ post.title }}</h2>
<p>{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}</p>
+<p> Authour: {{post.authour.name}}</p>
+<div>{{ post.content|markdown|safe }}</div>
-<div class="container">
- <div class="userbox">
- <p> Authour: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a></p>
- </div>
- <div class="post-content">{{ post.content|markdown|safe }}</div>
-</div>
<div class="post-actions">
<a href="{{ url_for('create', reply=post.id)}}"> Reply</a> ~
<a href="{{ url_for('index') }}">Back to posts</a>
diff --git a/templates/view_thread.html b/templates/view_thread.html
index 877feb8..6696462 100644
--- a/templates/view_thread.html
+++ b/templates/view_thread.html
@@ -13,7 +13,9 @@
</div>
<div class="post-content">
<p>
- <h4> {{post.title}} </h4>
+ <a href="{{url_for('post', post_id=post.id)}}">
+ <h4> {{post.title}} </h4>
+ </a>
</p>
{{ post.content|markdown|safe }}
</div>