aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.fossil-settings/ignore-glob3
-rw-r--r--MANIFEST.in2
-rw-r--r--apioforum/__init__.py2
-rw-r--r--apioforum/static/style.css8
-rw-r--r--apioforum/templates/base.html1
-rw-r--r--apioforum/templates/view_forum.html21
6 files changed, 33 insertions, 4 deletions
diff --git a/.fossil-settings/ignore-glob b/.fossil-settings/ignore-glob
index a1e9259..c2757ed 100644
--- a/.fossil-settings/ignore-glob
+++ b/.fossil-settings/ignore-glob
@@ -2,3 +2,6 @@ instance/*
venv/*
*.db
*.py[cod]
+build/*
+dist/*
+apioforum.egg-info/*
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..ccfe169
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,2 @@
+graft apioforum/static
+graft apioforum/templates
diff --git a/apioforum/__init__.py b/apioforum/__init__.py
index 41614f0..7baa7c1 100644
--- a/apioforum/__init__.py
+++ b/apioforum/__init__.py
@@ -32,4 +32,6 @@ def create_app():
from .fuzzy import fuzzy
app.jinja_env.filters['fuzzy']=fuzzy
+ app.add_url_rule("/",endpoint="index")
+
return app
diff --git a/apioforum/static/style.css b/apioforum/static/style.css
index 2ec7d20..d66a639 100644
--- a/apioforum/static/style.css
+++ b/apioforum/static/style.css
@@ -55,15 +55,19 @@ nav a { color: blue; text-decoration: none }
.threadlisting:nth-child(odd) { background-color: #ddd }
.threadlisting { display: flex; flex-flow: row wrap; text-align: center }
-.threadlisting-part { flex: 1 0px; display: table-cell; vertical-align: middle; }
+.threadlisting-part { flex: 1 0px; display: table-cell; vertical-align: middle; padding: 3px}
.threadlisting-part-title { flex: 3 0px }
+.threadlisting-header { font-weight: bold }
@media all and (max-width: 800px) {
.threadlisting-part-title { flex: 2 100%; }
.threadlisting { margin-bottom: 5px; }
}
-.threadlisting-part-id { flex: 0.4 0px; }
+@media all and (min-width: 1200px) {
+ .threadlisting { width: 1200px }
+}
+.threadlisting-part-id { flex: 0.4 0px; }
.threadlisting-part { border: 1px solid black }
.actionbutton::before {
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>