Added federatio header view to federation stats page.

This commit is contained in:
Christian P. MOMON 2021-06-03 03:08:22 +02:00
parent 82c7d3f3ed
commit 29a2d97468
2 changed files with 3 additions and 1 deletions

View file

@ -62,6 +62,8 @@ public class FederationStatsPage
TagDataManager data = new TagDataManager(); TagDataManager data = new TagDataManager();
data.setContent("federationHeaderView", FederationHeaderView.htmlize(federation));
data.setContent("turnoutChart", ChartHtmlizer.htmlizeOrganizationTurnoutChart(federation.getOrganizations())); data.setContent("turnoutChart", ChartHtmlizer.htmlizeOrganizationTurnoutChart(federation.getOrganizations()));
data.setContent("organizationCountryChart", ChartHtmlizer.htmlizeOrganizationCountryChart(federation.getOrganizations())); data.setContent("organizationCountryChart", ChartHtmlizer.htmlizeOrganizationCountryChart(federation.getOrganizations()));
data.setContent("organizationCountChart", ChartHtmlizer.htmlizeOrganizationCountChart(federation)); data.setContent("organizationCountChart", ChartHtmlizer.htmlizeOrganizationCountChart(federation));

View file

@ -11,8 +11,8 @@
<script src="Chart.bundle.min.js"></script> <script src="Chart.bundle.min.js"></script>
</head> </head>
<body> <body>
<div id="federationHeaderView" />
<div class="row center_table" style="width: 1100px;"> <div class="row center_table" style="width: 1100px;">
<h2 id="title" class="center">Statistiques</h2> <h2 id="title" class="center">Statistiques</h2>
<p>Les graphiques ci-dessous sont générés à partir de données déclarées et potentiellement partielles.</p> <p>Les graphiques ci-dessous sont générés à partir de données déclarées et potentiellement partielles.</p>
<div> <div>