This commit is contained in:
andis
2017-08-11 18:40:13 +02:00
parent 9882fba6f3
commit 51acbfbd38
5 changed files with 47 additions and 1 deletions

View File

@@ -52,3 +52,9 @@ def store_answered(id, value):
def studium():
mth=db_session.query(MailThread).filter(MailThread.maintopic=="studium").order_by(desc(MailThread.date)).all()
return render_index(mth)
@app.route("/<maintopic>")
def maintopic(maintopic):
mth=db_session.query(MailThread).filter(MailThread.maintopic=="%s" % maintopic).order_by(desc(MailThread.date)).all()
return render_index(mth)

View File

@@ -31,7 +31,10 @@
<div id="collapse{{m.firstmail}}" class="collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="card-block">
<div style="white-space: pre-wrap;font:Courier, monospace; font-size:small; width:50em; border: thin blue solid;"> {{ m.print_text() }} </div>
{{m.maintopic}}
<div style="white-space: pre-wrap;font:Courier, monospace; font-size:small; width:50em; border: thin blue solid;">
{{ m.print_text() }}
</div>
</div>
</div>
</div>