summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-12 20:40:06 +0000
committerubq323 <ubq323>2021-06-12 20:40:06 +0000
commitcf811d3e057c8f75142d3462e282de67cd70f3d2 (patch)
tree09b07204da5731974fabff38577f7f5487586fe2 /apioforum/templates
parent5c768d7f130b1cf297bccaa72ee463903958ebde (diff)
properly build, and add fuzzy timestamps to view forum page
Diffstat (limited to 'apioforum/templates')
-rw-r--r--apioforum/templates/base.html1
-rw-r--r--apioforum/templates/view_forum.html21
2 files changed, 20 insertions, 2 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index 626d88d..847b8b2 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -13,6 +13,7 @@
<li>
<span style="font-family: monospace;"><b>apio</b><i>forum</i>&trade;</span>
</li>
+ <li><a href="{{url_for('index')}}">home</a></li>
{% if g.user %}
<li>{{ g.user }}</li>
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index c7f88f1..a9c7594 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -1,16 +1,33 @@
{% extends 'base.html' %}
+{% from 'common.html' import ts %}
{% block header %}<h1>{% block title %}apio forum george etc{%endblock%}</h1>{%endblock%}
{%block content%}
<p>the</p>
<a href="{{url_for('forum.create_thread')}}">create thread</a>
<div class="threadlistings">
+<div class="threadlisting">
+ <div class="threadlisting-part threadlisting-part-title threadlisting-header">
+ name
+ </div>
+ <div class="threadlisting-part threadlisting-part-id threadlisting-header">
+ id
+ </div>
+ <div class="threadlisting-part threadlisting-part-creator threadlisting-header">
+ creator
+ </div>
+ <div class="threadlisting-part threadlisting-part-created threadlisting-header">
+ created
+ </div>
+ <div class="threadlisting-part threadlisting-part-updated threadlisting-header">
+ last updated
+ </div>
{%for thread in threads%}
<div class="threadlisting">
<div class="threadlisting-part threadlisting-part-title"><a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">{{thread.title}}</a></div>
<div class="threadlisting-part threadlisting-part-id">#{{thread.id}}</div>
<div class="threadlisting-part threadlisting-part-creator">{{thread.creator}}</div>
- <div class="threadlisting-part threadlisting-part-created">{{thread.created}}</div>
- <div class="threadlisting-part threadlisting-part-updated">{{thread.updated}}</div>
+ <div class="threadlisting-part threadlisting-part-created">{{ts(thread.created)}}</div>
+ <div class="threadlisting-part threadlisting-part-updated">{{ts(thread.updated)}}</div>
</div>
{%endfor%}
</div>