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:
@@ -164,6 +164,11 @@ def services():
|
|||||||
return render_template('services.html')
|
return render_template('services.html')
|
||||||
|
|
||||||
|
|
||||||
|
@blueprint.route('/stats')
|
||||||
|
def stats():
|
||||||
|
return render_template('stats.html')
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/join')
|
@blueprint.route('/join')
|
||||||
def join():
|
def join():
|
||||||
"""Join page"""
|
"""Join page"""
|
||||||
|
30
src/templates/stats.pug
Normal file
30
src/templates/stats.pug
Normal 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 %}
|
Reference in New Issue
Block a user