diff options
author | ubq323 <ubq323> | 2021-05-23 20:23:54 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-05-23 20:23:54 +0000 |
commit | 78bee4ec778947df35fa47e29282a60aec5a7acd (patch) | |
tree | 533cd1e3b9aad1e84aa0fe21dea8ecac177a2550 /apioforum/templates | |
parent | eb298f0c63eb6ac5547a6a7a0086e5e086ad5abc (diff) |
threads etc
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/base.html | 2 | ||||
-rw-r--r-- | apioforum/templates/view_thread.html | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 6660686..28fd055 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -10,7 +10,7 @@ <h1>apioforum</h1> <ul> {% if g.user %} - <li>{{ g.user['username'] }}</li> + <li>{{ g.user }}</li> <li><a href="{{ url_for('auth.logout') }}">logout</a></li> {% else %} <li><a href="{{ url_for('auth.login') }}">login</a></li> diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index 34faeea..ebbcd3b 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -8,11 +8,16 @@ <p>by {{thread.creator}}</p> <dl> {% for post in posts %} -<dt>{{post.author}}</dt> +<dt>{{post.author}} {{post.created}}</dt> <dd>{{post.content}}</dd> {% else %} <dt>there weren't</dt> <dd>any posts</dd> {% endfor %} </dl> +{% if g.user %} +<p>loggedi n as {{ g.user }}</p> +{% else %} +<p>not logged in</p> +{% endif %} {% endblock %} |