summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-01-23 13:04:35 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-01-25 01:56:13 +0100
commit899947bd00df10cca15aca1b3c14125b38b35ecf (patch)
treecbe0cd8023efa657b478476a70f83d2f5cb5509b /templates/base.html
parentbd20d0ff1c7a582f3c53d30bfc387139c419ef35 (diff)
downloadweb-899947bd00df10cca15aca1b3c14125b38b35ecf.tar.gz
web-899947bd00df10cca15aca1b3c14125b38b35ecf.tar.bz2
web-899947bd00df10cca15aca1b3c14125b38b35ecf.zip
Moved everything into a package
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html72
1 files changed, 0 insertions, 72 deletions
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index d6a1726..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,72 +0,0 @@
-{%- set styles = ['layout.css', 'bootstrap-form.css'] + styles|default([]) %}
-{%- set scripts = ['script.js', 'jquery-1.8.2.min.js'] + scripts|default([]) %}
-<!doctype html> <html>
- <head>
- <meta charset="utf-8" />
- <title>{% if title %}{{ title }} – {% endif %}spline accounts</title>
- {%- for script in scripts %}
- <script type="text/javascript" src="{{ url_for('static', filename=script) }}"></script>
- {%- endfor %}
- {%- for style in styles %}
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename=style, version='0.2') }}">
- {%- endfor %}
- </head>
- <body>
-
- <div id="header-background">&nbsp;</div>
- <header>
- <h1><a href="{{ url_for('settings') if g.user else url_for('index') }}">
- <img src="{{ url_for('static', filename='logo.png') }}" alt="spline accounts" />
- </a></h1>
- <span id="roundcornerb">&nbsp;</span>
- <span id="roundcornerw">&nbsp;</span>
-
- <nav id="mainnav">
- <ul>
- <li><a href="http://spline.de">spline.de</a></li>
- <li><a href="{{ url_for('about') }}">FAQ</a></li>
- </ul>
- </nav>
-
- {%- if not no_login_message %}
- <nav id="usermenu">
- <ul>
- {%- if g.user %}
- <li>Angemeldet als <strong>{{ g.user.uid }}</strong></li>
- {%- if g.user.uid in config.get('ADMIN_USERS', []) %}
- <li><a href="{{ url_for('admin.index') }}">Admin</a></li>
- {%- endif %}
- <li><a href="{{ url_for('logout') }}">Abmelden</a></li>
- {%- else %}
- <li>Nicht angemeldet</li>
- <li><a href="{{ url_for('index') }}">Login</a></li>
- {%- endif %}
- </ul>
- </nav>
- {%- endif %}
- </header>
-
- <section id="content">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- <ul class="flashes">
- {% for category, message in messages %}
- <li class="{{ category }}">{{ message }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endwith %}
-
- {% if title %}
- <h1>{{ title }}</h1>
- {% endif %}
- {% block content %}{% endblock %}
- </section>
-
- {%- if self.javascript() %}
- <script type="text/javascript">
- {%- block javascript %}{% endblock -%}
- </script>
- {%- endif %}
- </body>
-</html>