diff --git a/dashboard/kpi.py b/dashboard/kpi.py index ef793c743..1c26c4739 100644 --- a/dashboard/kpi.py +++ b/dashboard/kpi.py @@ -21,8 +21,7 @@ from dashboard import decorators blueprint = flask.Blueprint('kpi', __name__, url_prefix='/kpi') -@blueprint.route('/example') -@decorators.templated() +@blueprint.route('/') @decorators.exception_handler() -def example(): - return +def kpi_report(path): + return flask.render_template('kpi/' + path + '.html'), 200 diff --git a/dashboard/templates/kpi/base_kpi.html b/dashboard/templates/kpi/base_kpi.html index fc2bc9d01..dd09e6493 100644 --- a/dashboard/templates/kpi/base_kpi.html +++ b/dashboard/templates/kpi/base_kpi.html @@ -38,8 +38,8 @@ {% endblock %} @@ -34,4 +47,7 @@

Percentage in top

+ +

Core status

+
{% endblock %}