Ilya Shakhat 7dcacd43fc Finished example of KPI report
* Common code is moved to base template
* Styles are made more accurate

Change-Id: I65e11143c3fbe9fc7d4e620a521f7e5b22763e46
2013-12-06 19:42:06 +04:00

36 lines
1.4 KiB
HTML

{% extends "kpi/base_kpi.html" %}
{% block title %}
Example of KPI report
{% endblock %}
{% block scripts %}
<script type="text/javascript">
$(document).ready(function () {
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "commits", project_type: "openstack"},
"companies", "Mirantis", 5, "Be in top 5 by commits");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", project_type: "openstack"},
"engineers", "boris-42", 5, "Be in top 5 by reviews");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", project_type: "openstack", module: "glance", exclude: "core"},
"engineers", "boris-42", 3, "Be in top 3 among non-core reviewers");
goal_percentage_in_top_less_than("kpi_container_percentage",
{release: "all", metric: "commits", project_type: "stackforge", module: "stackalytics"},
"companies", "Mirantis", 0.8, "Mirantis contribution is less than 80%");
});
</script>
{% endblock %}
{% block content %}
<h1>Example of KPI report</h1>
<h2>Position in top</h2>
<div id="kpi_container_position"></div>
<h2>Percentage in top</h2>
<div id="kpi_container_percentage"></div>
{% endblock %}