aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-07-22 17:35:37 +0000
committerubq323 <ubq323>2021-07-22 17:35:37 +0000
commit054e159a1183bbd328d24924e4478e7677fade42 (patch)
tree521a2736c8fc8b207eea8e530792f88a974409af
parentd22cd7736b46e4cae507cbb5e1d83f6794c2f921 (diff)
minor html restructureper-forum-tags
-rw-r--r--apioforum/static/style.css2
-rw-r--r--apioforum/templates/base.html2
-rw-r--r--apioforum/templates/view_forum.html6
3 files changed, 6 insertions, 4 deletions
diff --git a/apioforum/static/style.css b/apioforum/static/style.css
index 1ee3b14..1f089a0 100644
--- a/apioforum/static/style.css
+++ b/apioforum/static/style.css
@@ -189,7 +189,7 @@ blockquote {
border-left: 3px solid grey;
}
-.search-form {
+.inline-form {
display: inline-block;
}
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index 9cfd7f3..ca1dd87 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -12,7 +12,7 @@
<body>
<nav id="navbar">
<p style="font-family: monospace;"><b>apio</b><i>forum</i>&trade;</p>
- <form class="search-form" action="/search">
+ <form class="inline-form" action="/search">
<input type="search" placeholder="query" name="q">
<input type="submit" value="search">
</form>
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index 25d83e5..475fdc2 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -43,11 +43,13 @@
{% endif %}
<h2>threads</h2>
+<p>
{% if g.user %}
-<p><a class="actionbutton" href="{{url_for('forum.create_thread',forum_id=forum.id)}}">create new thread</a></p>
+<a class="actionbutton" href="{{url_for('forum.create_thread',forum_id=forum.id)}}">create new thread</a>
{% else %}
-<p>please log in to create a new thread</p>
+please log in to create a new thread
{% endif %}
+</p>
<div class="thread-list">
{%for thread in threads%}
<div class="listing">