diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..b2e8e74 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,28 @@ +<html> + <title>{{ domain }}/{{ title }}</title> + <head> + {% block css%} + <link rel="stylesheet" type="text/css" href="/static/main.css"> + {% endblock %} + </head> + <body><center> + <h1><a href="/">{{ domain }}</a></h1> + <!-- navbar --> + <div class="navbar"> + <b>|</b> <!-- This makes the bar symmetrical --> + {% for dir in navbar %} + <b> <a href="/{{ dir }}">{{ dir }}/</a> |</b> + {% endfor %} + </div> + <h2>{{ title }}</h2> + <div class="content"> + {% block content %} + {% endblock %} + <h3>{{ errors }}</h3> + {% if parent_dir != '/' %} + <h3><a href="{{ parent_dir }}">Go up to parent folder ({{ parent_dir }})</a></h3> + {% endif %} + </div> + <div class="license">{% include 'site/license.html' %}</div> + </center></body> +</html> |