1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
This commit is contained in:
Steffo 2018-07-24 19:45:12 +02:00
parent 3bbecab05c
commit 4d83880dd6
2 changed files with 38 additions and 3 deletions

View file

@ -18,13 +18,48 @@
{% include "/components/event.html" %}
{% endfor %}
</div>
<div class="box upper-box">
Pagine Wiki
</div>
<div class="box lower-box">
<ul>
{% for page in wiki_pages %}
<li><a href="/wiki/{{ page.key }}">{{ page.key }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<div class="right">
<div class="box upper-box">
Sassi
Membri
</div>
<div class="box lower-box">
CIAOOOOOO
<ul>
{% for royal in royals %}
<li><a href="/profile/{{ royal.username }}">{{ royal.username }}</a></li>
{% endfor %}
</ul>
</div>
<div class="box upper-box">
Resoconti
</div>
<div class="box lower-box">
<ul>
<li><a href="/game/ryg">Royal Games</a></li>
<li><a href="/game/steam">Steam</a></li>
<li><a href="/game/dota">Dota 2</a></li>
<li><a href="/game/rl">Rocket League</a></li>
<li><a href="/game/lol">League of Legends</a></li>
<li><a href="/game/ow">Overwatch</a></li>
<li><a href="/game/osu">osu!</a></li>
</ul>
</div>
<div class="box upper-box">
Diario
</div>
<div class="box lower-box">
{% include "components/diarioentry.html" %}
<a href="/diario">Visualizza tutto</a>
</div>
</div>
</div>

View file

@ -60,7 +60,7 @@ def page_main():
random_diario = db_session.query(db.Diario).order_by(db.func.random()).first()
next_events = db_session.query(db.Event).filter(db.Event.time > datetime.datetime.now()).order_by(db.Event.time).all()
db_session.close()
return render_template("main.html", royals=royals, wiki_pages=wiki_pages, diario=random_diario,
return render_template("main.html", royals=royals, wiki_pages=wiki_pages, entry=random_diario,
next_events=next_events, config=config, escape=escape)