From: Ole Artz Date: Thu, 17 Aug 2017 13:43:10 +0000 (+0200) Subject: DASH: template inheritance -> base.jinja2 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d9ff8f93dd5c6e6ad2533815d7ad3c6eaab86376;p=mvd_epics.git DASH: template inheritance -> base.jinja2 --- diff --git a/python_suite/dashboard/views/base.jinja2 b/python_suite/dashboard/views/base.jinja2 new file mode 100644 index 0000000..c8f5d74 --- /dev/null +++ b/python_suite/dashboard/views/base.jinja2 @@ -0,0 +1,33 @@ + + + {% block title %}OVERVIEW{% endblock %} - PRESTO + + + + + +
+
+ logo + logo +

PRESTO - Overview
Prototype of the Second Station of the Micro Vertex Detector of the Compressed Baryonic Matter

+
+ +
+ {% block content %}{% endblock %} +
+
+
+ Copyright ©Ole Artz, Philipp Klaus, + IKF-Working Group Prof. Dr. Stroth +
+
+ + + + + diff --git a/python_suite/dashboard/views/pv_overview.jinja2 b/python_suite/dashboard/views/pv_overview.jinja2 index bc01588..b70536f 100644 --- a/python_suite/dashboard/views/pv_overview.jinja2 +++ b/python_suite/dashboard/views/pv_overview.jinja2 @@ -1,22 +1,8 @@ - - - PRESTO - OVERVIEW - - - +{% extends "base.jinja2" %} - -
-
- logo - logo -

PRESTO - Overview
Prototype of the Second Station of the Micro Vertex Detector of the Compressed Baryonic Matter

-
- +{% block title %}{{ config.pages[req_page].name }}{% endblock %} + +{% block content %}
{% set page = config.pages[req_page] %} {% for group in page.groups %} @@ -59,14 +45,4 @@
{% endfor %}
-
-
- Copyright ©Ole Artz, Philipp Klaus, - IKF-Working Group Prof. Dr. Stroth -
- - - - - - +{% endblock %}