Add charts.js plugin, basic chart component

This commit is contained in:
2018-07-14 16:36:23 +02:00
parent 6efc3ea790
commit 7a35f5177c
7 changed files with 207 additions and 28 deletions
+23 -12
View File
@@ -1,18 +1,29 @@
<main id="index">
<section id="people">
<header>
<h2>Contributors</h2>
</header>
<div class="content">
{{contributor-list contributors=contributorsSorted}}
<div id="stats">
<section id="people">
<header>
<h2>Contributors</h2>
</header>
<div class="content">
{{contributor-list contributors=contributorsSorted}}
<p class="stats">
<span class="number">{{await kredits.totalSupply}}</span> kredits issued and distributed among
<span class="number">{{contributorsWithKredits.length}}</span> contributors.
</p>
</div>
</section>
<p class="stats">
<span class="number">{{await kredits.totalSupply}}</span> kredits issued and distributed among
<span class="number">{{contributorsWithKredits.length}}</span> contributors.
</p>
</div>
</section>
<section id="contributions-by-type">
<header>
<h2>Contributions by type</h2>
</header>
<div class="content">
{{chart-contributions-by-type contributions=proposalsClosed}}
</div>
</section>
</div>
<div id="contributions">
{{#if proposalsOpen}}