From 5d0b8a1dc4f6ddbb1d7e7a2d09f70acb26f46056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 21 Sep 2017 14:25:14 +0200 Subject: [PATCH] Added static page that embeds stats from Kibana. It just has a full-width iframe that embeds the dashboard from https://stats.cloud.blender.org/ --- cloud/routes.py | 5 +++++ src/templates/stats.pug | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/templates/stats.pug diff --git a/cloud/routes.py b/cloud/routes.py index 3cc02a3..a65dea4 100644 --- a/cloud/routes.py +++ b/cloud/routes.py @@ -164,6 +164,11 @@ def services(): return render_template('services.html') +@blueprint.route('/stats') +def stats(): + return render_template('stats.html') + + @blueprint.route('/join') def join(): """Join page""" diff --git a/src/templates/stats.pug b/src/templates/stats.pug new file mode 100644 index 0000000..814e97d --- /dev/null +++ b/src/templates/stats.pug @@ -0,0 +1,30 @@ +| {% extends 'layout.html' %} +| {% block page_title %}Statistics{% endblock %} + +| {% set title = 'statistics' %} + +| {% block og %} +meta(property="og:title", content="Blender Cloud Statistics") +meta(property="og:url", content="https://cloud.blender.org/stats") +meta(property="og:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_andy_hdribot_01.jpg')}}") +| {% endblock %} + +| {% block head %} +style. + iframe { + width: 100%; + min-height: 1000px; + margin: 0; + padding: 0; + border: none; + } +| {% endblock %} + +| {% block body %} +#page-container + #page-content + + iframe(src="https://stats.cloud.blender.org/app/kibana#/dashboard/AV6Vsii-yS6gf1Jm5XuV?embed=true&_g=(time:(from:now-90d,mode:quick,to:now),refreshInterval:(display:Off,pause:!f,section:0,value:0))") + + +| {% endblock %}