From fda2230b8c3124c3ee616aed77d0f928ce63b285 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 12 Jun 2021 23:35:04 +0000 Subject: make things look less bad --- apioforum/forum.py | 2 +- apioforum/static/style.css | 1 + apioforum/templates/auth/login.html | 5 ++++- apioforum/templates/auth/register.html | 5 ++++- apioforum/templates/create_thread.html | 5 +++-- apioforum/templates/edit_post.html | 6 ++++-- apioforum/templates/view_forum.html | 8 +++++--- 7 files changed, 22 insertions(+), 10 deletions(-) diff --git a/apioforum/forum.py b/apioforum/forum.py index 261da15..61babbd 100644 --- a/apioforum/forum.py +++ b/apioforum/forum.py @@ -12,7 +12,7 @@ bp = Blueprint("forum", __name__, url_prefix="/") @bp.route("/") def view_forum(): db = get_db() - threads = db.execute("SELECT * FROM threads ORDER BY updated DESC LIMIT 10;").fetchall() + threads = db.execute("SELECT * FROM threads ORDER BY updated DESC;").fetchall() return render_template("view_forum.html",threads=threads) @bp.route("/create_thread",methods=("GET","POST")) diff --git a/apioforum/static/style.css b/apioforum/static/style.css index d66a639..46d5fdb 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -78,6 +78,7 @@ nav a { color: blue; text-decoration: none } content: "]"; color: grey; } +.actionbutton { color:blue } .new-post-box { height:20em; diff --git a/apioforum/templates/auth/login.html b/apioforum/templates/auth/login.html index c0a2eed..3e69134 100644 --- a/apioforum/templates/auth/login.html +++ b/apioforum/templates/auth/login.html @@ -4,11 +4,14 @@ {% endblock %} {% block content %} +

log in using an existing account here. if you don't already have an account, register first instead.

+
- +
+
{% endblock %} diff --git a/apioforum/templates/auth/register.html b/apioforum/templates/auth/register.html index 716fa1d..7d079c2 100644 --- a/apioforum/templates/auth/register.html +++ b/apioforum/templates/auth/register.html @@ -4,11 +4,14 @@ {% endblock %} {% block content %} +

create a new account here. if you already have an account, login instead.

+
- +
+
{% endblock %} diff --git a/apioforum/templates/create_thread.html b/apioforum/templates/create_thread.html index b8d204c..9de7312 100644 --- a/apioforum/templates/create_thread.html +++ b/apioforum/templates/create_thread.html @@ -7,8 +7,9 @@
+
- - + +
{% endblock %} diff --git a/apioforum/templates/edit_post.html b/apioforum/templates/edit_post.html index d8eac58..8e8120d 100644 --- a/apioforum/templates/edit_post.html +++ b/apioforum/templates/edit_post.html @@ -6,7 +6,9 @@ {% block content %}
- - + +

confirm edit?

+ +cancel
{% endblock %} diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index a94b468..7c4b45c 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -1,9 +1,11 @@ {% extends 'base.html' %} {% from 'common.html' import ts %} -{% block header %}

{% block title %}apio forum george etc{%endblock%}

{%endblock%} +{% block header %}

{% block title %}apioforum{%endblock%}

{%endblock%} {%block content%} -

the

-create thread +

welcome to the apioforum

+

forum rules: do not be a bad person. do not do bad things.

+create new thread +

-- cgit v1.2.3