summaryrefslogtreecommitdiff
path: root/templates/layout.jinja
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-07-23 00:28:47 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-07-23 00:28:47 +0200
commit81493afa53a1a1d5ff4b417d05febf9f9e2a172b (patch)
tree00de0a1bb7c386cff4203aa7b0789569e75347bb /templates/layout.jinja
parent6f6c8af2a55fabb69372e3fc4e8504167805d018 (diff)
downloadkosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.gz
kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.tar.bz2
kosten-81493afa53a1a1d5ff4b417d05febf9f9e2a172b.zip
Restructure
Diffstat (limited to 'templates/layout.jinja')
-rw-r--r--templates/layout.jinja81
1 files changed, 0 insertions, 81 deletions
diff --git a/templates/layout.jinja b/templates/layout.jinja
deleted file mode 100644
index b34cddb..0000000
--- a/templates/layout.jinja
+++ /dev/null
@@ -1,81 +0,0 @@
-{% from 'js.jinja' import scripts %}
-<!doctype html>
-<html>
- <head>
- <meta charset="utf-8">
- <link rel="shortcut icon" href="{{ "images/currency.png" | static_url }}" type="image/icon">
- <title>{{ title or "Kostenverwaltung" }}</title>
- {% block style %}
- <link href="{{ "css/style.css" | static_url }}" rel="stylesheet" type="text/css">
- {% endblock %}
- </head>
- {% if config['DEBUG'] %}<!-- {{ request.environ | safe }} -->{% endif %}
- <body>
- <div id="head-wrapper">
- <div id="logo">
- <img src="{{ "images/currency.png" | static_url }}">
- <h1><a href="{{ url_for("index") }}">Kosten</a></h1>
- {% if current_user.is_authenticated %}
- <h2>»   {{ current_user.description | default('von ' ~ current_user.name, true) }}</h2>
- {% endif %}
- </div>
-
- <div id="header">
- <div id="menu">
- {% block menu %}
- {% from "menu.jinja" import menu with context %}
- <ul>
- {% for uri, page in menu %}
- <li class="menu-item"><a href="{{ url_for(uri) }}">{{page}}</a></li>
- {% endfor %}
- {% if current_user.is_authenticated %}
- <li class="search">
- <img class="search" src="{{ "images/lupe.png" | static_url }}" alt="Search">
- <form class="search" method="post" action="{{ url_for("expenses.search") }}">
- <input type="search" value="" name="search" class="search">
- <input type="submit" value="" class="search-submit">
- </form>
- </li>
- {% endif %}
- </ul>
- {% endblock %}
- </div>
- </div>
- </div>
-
- <div id="page">
- <div id="content">
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- <ul id="messages">
- {% for cat,msg in messages %}
- <li class="msg-{{ cat }}">{{ msg }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endwith %}
- <h1 id="page_heading">{% block heading -%}{%- endblock %}</h1>
- {% block content %}{% endblock %}
- </div>
- <div style="clear: both;"></div>
- </div>
- <div id="footer">
- {% block footer %}
- <p id="legal">
- powered by <a href="https://palletsprojects.com/p/flask/">Flask</a> |
- © 2010-2020. All Rights Reserved. René Neumann |
- with the help of <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
- </p>
- {% endblock %}
- </div>
- {% if not g.is_mobile %}
- {% block js %}
- {{ scripts("jquery", "kosten") }}
- {% endblock %}
- {% if additionalJS %}{{ scripts(additionalJS) }}{% endif %}
- {% if JSFunction %}
- <script type="text/javascript">{{ JSFunction }}()</script>
- {% endif %}
- {% endif %}
- </body>
-</html>