summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorMatt Arnold2025-04-15 22:38:45 -0400
committerMatt Arnold2025-04-15 22:38:45 -0400
commit6e1f614f0cf67d997c0a1b7e4e3866294c05f1e0 (patch)
tree0f4cd6962d24773e9c487cac3fdbf1a2e3e36b16 /templates
parent1f6e041e49754ae41db005f98df2685031ccaff0 (diff)
We're at Minimum viable product now
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>