From 37e7b924e4e994b6e5bf14e755746e435dbec3ec Mon Sep 17 00:00:00 2001 From: saksham115 Date: Tue, 1 Aug 2017 19:40:24 +0530 Subject: header.html for reporting page JIRA: STORPERF-169 Change-Id: I47814ada495ff1a18b20d34007ab37f84b265f01 Signed-off-by: saksham115 --- docker/storperf-reporting/src/app.py | 5 +++++ .../images/OPNVF_ProjectIcons_2400x2400_Storperf.png | Bin 0 -> 54862 bytes docker/storperf-reporting/src/templates/header.html | 8 ++++++++ docker/storperf-reporting/src/templates/index.html | 2 ++ .../storperf-reporting/src/templates/plot_tables.html | 1 + 5 files changed, 16 insertions(+) create mode 100644 docker/storperf-reporting/src/static/images/OPNVF_ProjectIcons_2400x2400_Storperf.png create mode 100644 docker/storperf-reporting/src/templates/header.html diff --git a/docker/storperf-reporting/src/app.py b/docker/storperf-reporting/src/app.py index fadda66..c77f60f 100644 --- a/docker/storperf-reporting/src/app.py +++ b/docker/storperf-reporting/src/app.py @@ -40,6 +40,11 @@ def css(path): return send_from_directory('static/css/', path) +@app.route('/reporting/images/') +def images(path): + return send_from_directory('static/images/', path) + + @app.route('/reporting/') def index(): return render_template('index.html') diff --git a/docker/storperf-reporting/src/static/images/OPNVF_ProjectIcons_2400x2400_Storperf.png b/docker/storperf-reporting/src/static/images/OPNVF_ProjectIcons_2400x2400_Storperf.png new file mode 100644 index 0000000..97ddd71 Binary files /dev/null and b/docker/storperf-reporting/src/static/images/OPNVF_ProjectIcons_2400x2400_Storperf.png differ diff --git a/docker/storperf-reporting/src/templates/header.html b/docker/storperf-reporting/src/templates/header.html new file mode 100644 index 0000000..06dee22 --- /dev/null +++ b/docker/storperf-reporting/src/templates/header.html @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/docker/storperf-reporting/src/templates/index.html b/docker/storperf-reporting/src/templates/index.html index 70e33bd..35cea1a 100644 --- a/docker/storperf-reporting/src/templates/index.html +++ b/docker/storperf-reporting/src/templates/index.html @@ -3,6 +3,7 @@ Graphing Module | Storperf + @@ -12,6 +13,7 @@
+ {% include 'header.html' %}

diff --git a/docker/storperf-reporting/src/templates/plot_tables.html b/docker/storperf-reporting/src/templates/plot_tables.html index a8c508d..04eaadc 100644 --- a/docker/storperf-reporting/src/templates/plot_tables.html +++ b/docker/storperf-reporting/src/templates/plot_tables.html @@ -19,6 +19,7 @@
+ {% include 'header.html' %}
Loading...
-- cgit 1.2.3-korg