all repos — myprecious @ 8b59845ab9b9df4c76efe688a18d9418435fa850

A lightweight web service to backup precious game saves.

myprecious/templates/base.html (view raw)

 1<!DOCTYPE html>
 2<html lang="en">
 3<head>
 4    <meta charset="utf-8">
 5    <meta name="viewport" content="width=device-width, initial-scale=1">
 6    {% block head %}
 7    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
 8    <title>myprecious</title>
 9    {% endblock %}
10</head>
11<body>
12    <header>
13        <nav>
14            {% block header %}
15            <a href="/">home</a>
16            {% if user.is_authenticated %}
17            <a href="/upload">upload</a>
18            {% if user.id == 1 %}
19            <a href="/admin">admin</a>
20            {% endif %}
21            <a href="/logout">logout</a>
22            {% else %}
23            <a href="/login">login</a>
24            <a href="/register">register</a>
25            {% endif %}
26            
27            {% endblock %}
28        </nav>
29        <hr>
30    </header>
31    <main>
32        <h1>{% block title %}{% endblock %}</h1>
33        {% block content %}{% endblock %}
34        <hr />
35        <nav>
36            {% block footer %}
37            <span>questions: </span>
38            <a href="/about">what is this?</a>
39            <a href="https://birabittoh.is-a.dev/" target="_blank">who made this?</a>
40            {% endblock %}
41        </nav>
42    </main>
43</body>
44</html>