vtt/src/ttfrog/themes/default/base.html

48 lines
1.3 KiB
HTML
Raw Normal View History

2025-09-27 16:20:08 -07:00
<!DOCTYPE html>
<html>
<head>
{% block head %}
<meta charset="utf-8">
<title>{% block title %}TTFROG{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css' ) }}">
{% endblock %}
{% endblock %}
</head>
<body>
<nav>
2025-10-04 01:26:09 -07:00
{% for uri, name in breadcrumbs %}
<span>&nbsp; / <a href="{{ app.config.VIEW_URI }}{{ uri }}">{{ name }}</a></span>
{% endfor %}
2025-09-27 16:20:08 -07:00
</nav>
2025-10-05 00:15:37 -07:00
{% if session['user_id'] == 1 %}
Welcome, {{ user['name'] }}. [ <a href="{{ url_for('login') }}">LOGIN</a> ]
{% else %}
2025-10-06 17:50:10 -07:00
Welcome, <a href="{{ url_for('view', path='User/' + user['name']) }}">{{ user['name'] }}</a>.
2025-10-05 00:15:37 -07:00
{% endif %}
2025-09-28 14:14:16 -07:00
<nav>
Menu:
2025-09-28 14:14:16 -07:00
<ul>
{% block menu %}{% endblock %}
</ul>
</nav>
2025-10-04 10:48:18 -07:00
Last Edited By: {{ page.author.name }}
<br>
2025-09-27 16:20:08 -07:00
<main>
2025-10-05 00:15:37 -07:00
{% for message in g.messages %}
2025-09-27 16:20:08 -07:00
<div class="alert">
{{ message }}
</div>
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
{% block footer %}
{% endblock %}
</footer>
{% block scripts %}{% endblock %}
</body>
</html>