Titivillus/jinja2/base.html

33 lines
1.2 KiB
HTML
Raw Normal View History

2018-08-10 08:39:51 -04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2018-08-10 08:39:51 -04:00
<title>{% block title %}{% endblock %} - Titivillus</title>
<link rel="stylesheet" type="text/css" href="{{ static('base.css') }}">
2018-09-19 15:56:59 -04:00
<script type="text/javascript" src="{{ static('base.js') }}"></script>
2018-09-20 13:09:24 -04:00
<script>
const set_session_url = '{{ url("set_session:index") }}';
const csrf_token = '{{ csrf_token }}';
</script>
2018-08-10 08:39:51 -04:00
{% block head %}{% endblock %}
</head>
<body>
2018-09-19 15:56:59 -04:00
<div id="globalWrapper">
<ul id="header" class="header" style="{% if request.session.get("hide_header") == True %}display:none;{% else %}display:initial;{% endif %}">
2018-09-20 13:09:24 -04:00
<li><a onclick="toggle_header();" href="javascript:void(0);"></a></li>
2018-09-19 15:56:59 -04:00
<li><a href="{{ url('homepage:index') }}">Home</a></li>
{% block header %}{% endblock %}
</ul>
<ul id="headerHidden" class="header" style="{% if request.session.get("hide_header") == True %}display:initial;{% else %}display:none;{% endif %}">
2018-09-20 13:09:24 -04:00
<li><a onclick="toggle_header();" href="javascript:void(0);"></a></li>
2018-09-19 15:56:59 -04:00
</ul>
<ul id="alerts">
{% for message in get_messages(request) %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
2018-09-19 15:56:59 -04:00
<div id="content">{% block content %}{% endblock %}</div>
</div>
2018-08-10 08:39:51 -04:00
</body>
</html>