aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/templates/base.html11
-rw-r--r--apioforum/templates/view_thread.html9
2 files changed, 11 insertions, 9 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index d4ecb54..ef60264 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -9,13 +9,16 @@
<body>
<main>
<nav>
+ <ul>
+
{% if g.user %}
- <div class="logged-in-user">{{ g.user }}</div>
- <a class="link-button logout" href="{{ url_for('auth.logout') }}">logout</a>
+ <li>{{ g.user }}</li>
+ <li><a href="{{ url_for('auth.logout') }}">logout</a></li>
{% else %}
- <a class="link-button login" href="{{ url_for('auth.login') }}">login</a>
- <a class="link-button register" href="{{ url_for('auth.register') }}">register</a>
+ <li><a href="{{ url_for('auth.login') }}">login</a></li>
+ <li><a href="{{ url_for('auth.register') }}">register</a></li>
{% endif %}
+ </ul>
</nav>
{% for msg in get_flashed_messages() %}
<div class="flashmsg">{{ msg }}</div>
diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html
index 615aee0..d9efe86 100644
--- a/apioforum/templates/view_thread.html
+++ b/apioforum/templates/view_thread.html
@@ -7,11 +7,10 @@
<div class="posts">
{% for post in posts %}
<div class="post">
- <div class="heading">
- <div class="username">{{post.author}}</div>
- <div><span class="timestamp">{{post.created}}</span></div>
+ <div class="post_heading">
+ {{post.author}} @{{post.created}}
</div>
- <div class="md">
+ <div class="post_content">
{{rendered_posts[loop.index0] | safe}}
</div>
</div>
@@ -20,7 +19,7 @@
{% if g.user %}
<form class="new-post" action="{{url_for('thread.create_post',thread_id=thread_id)}}" method="POST">
<textarea placeholder="your post here..." name="content"></textarea>
- <input class="submit-post" type="submit" value="yes">
+ <input type="submit" value="yes">
</form>
{% else %}
<p>not logged in</p>