1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

small fixes

This commit is contained in:
Steffo 2018-07-29 23:30:49 +02:00
parent 0b7b5a0619
commit b8def5e2ae
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
@text-color: #a0ccff; @text-color: #a0ccff;
@quote-color: #a0ffcc; @quote-color: #a0ffcc;
@spoiler-color: #ffa0cc; @spoiler-color: #ffa0cc;
@highlight-color: #ffcca0; @highlight-color: #ffff95;
@accent-color: white; @accent-color: white;
@link-color: #00aaff; @link-color: #00aaff;
@visited-color: #aa66ff; @visited-color: #aa66ff;

View file

@ -8,6 +8,6 @@
</p> </p>
</div> </div>
<div class="right"> <div class="right">
<a class="entry-id" href="/diario#{{ entry.id }}">#{{ entry.id }}</a> <a class="entry-id" href="/diario#entry-{{ entry.id }}">#{{ entry.id }}</a>
</div> </div>
</blockquote> </blockquote>

View file

@ -255,7 +255,7 @@ def page_wiki(key: str):
@app.route("/diario") @app.route("/diario")
def page_diario(): def page_diario():
db_session = db.Session() db_session = db.Session()
diario_entries = db_session.query(db.Diario).all() diario_entries = db_session.query(db.Diario).order_by(db.Diario.timestamp.desc()).all()
db_session.close() db_session.close()
return render_template("diario.html", config=config, entries=diario_entries) return render_template("diario.html", config=config, entries=diario_entries)