From 4ac2861d28676bc886cf80b43a087f1f0044696a Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Wed, 9 Apr 2025 18:18:37 -0400 Subject: Threaded blogging works --- templates/login.html | 24 ++++++++++++++++++++++++ templates/post.html | 24 ++++++++++++++++++++---- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 templates/login.html (limited to 'templates') diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..3a46511 --- /dev/null +++ b/templates/login.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block content %} +

Welcome to VibeEngine

+
+ {{ form.hidden_tag() }} +

+ {{ form.username.label }}
+ {{ form.username(size=32) }}
+ {% for error in form.username.errors %} + [{{ error }}] + {% endfor %} +

+

+ {{ form.password.label }}
+ {{ form.password(size=32) }}
+ {% for error in form.password.errors %} + [{{ error }}] + {% endfor %} +

+

{{ form.remember_me() }} {{ form.remember_me.label }}

+

{{ form.submit() }}

+
+{% endblock %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html index 8272d37..d759da4 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,8 +1,24 @@ {% extends 'base.html' %} {% block content %} -

{{ post.title }}

-

{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

-
{{ post.content|markdown|safe }}
+{% if post.parent != 0 %} + Previous +
+{% endif %} +

{{ post.title }}

+

{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

+

Authour: {{post.authour.name}}

+
{{ post.content|markdown|safe }}
+
+ Reply ~ Back to posts -{% endblock %} +
+
+

Replies to this

+
+ +
+{% endblock %} \ No newline at end of file -- cgit 1.4.1-2-gfad0