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/
This commit is contained in:
2017-09-21 14:25:14 +02:00
parent 82a4bcd185
commit 5d0b8a1dc4
2 changed files with 35 additions and 0 deletions

View File

@@ -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"""

30
src/templates/stats.pug Normal file
View File

@@ -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 %}