updated homepage, added messages to all pages

This commit is contained in:
iou1name 2018-08-10 19:15:27 -04:00
parent 53bb7c4d75
commit 10ccab21eb
2 changed files with 12 additions and 3 deletions

View File

@ -3,7 +3,8 @@
{% block content %} {% block content %}
<h1>Quests 'n Shiet</h1> <h1>Quests 'n Shiet</h1>
<a href="./quest/1">Unga Bunga Quest</a><br /> <a href="./quest/1">Unga Bunga Quest</a><br />
<a href="./create_quest">Create New Quest</a><br /> <a href="{{ url('create_quest:index') }}">Create New Quest</a><br />
<a href="./signup">Sign up</a><br /> <a href="{{ url('signup:index') }}">Sign up</a><br />
<a href="./login">Login</a><br /> <a href="{{ url('login:index') }}">Login</a><br />
<a href="{{ url('logout:index') }}">Logout</a><br />
{% endblock %} {% endblock %}

View File

@ -36,6 +36,14 @@
<ul id="headerHidden" class="header" style="{% if request.session.get("hide_header") == True %}display:initial;{% else %}display:none;{% endif %}"> <ul id="headerHidden" class="header" style="{% if request.session.get("hide_header") == True %}display:initial;{% else %}display:none;{% endif %}">
<li><a onclick="toggleHeader();" href="javascript:void(0);"></a></li> <li><a onclick="toggleHeader();" href="javascript:void(0);"></a></li>
</ul> </ul>
<br /> <!-- TODO: make this more exact. -->
<div id="messages">
<ul class="messages">
{% for message in get_messages(request) %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
</div>
<div id="content">{% block content %}{% endblock %} </div> <div id="content">{% block content %}{% endblock %} </div>
</body> </body>
</html> </html>