admin: add exercices stats accordion
This commit is contained in:
parent
f4c74f57d6
commit
b387f011d8
3 changed files with 41 additions and 0 deletions
|
|
@ -49,6 +49,24 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card border-secondary" ng-controller="ExerciceStatsController">
|
||||
<div class="card-header bg-primary text-light" type="button" data-toggle="collapse" data-target="#collapseStats" aria-expanded="true" aria-controls="collapseStats">
|
||||
<h4 class="m-0"><small class="glyphicon glyphicon-chevron-right" aria-hidden="true"></small> Statistiques</h4>
|
||||
</div>
|
||||
<div class="collapse show" id="collapseStats" aria-labelledby="headingStats" data-parent="#accordionExercice">
|
||||
<dl class="row mt-2 ml-2">
|
||||
<dt class="col-sm-6 text-truncate" title="Nombre de tentatives">Nombre de tentatives</dt>
|
||||
<dd class="col-sm-6"><ng-pluralize count="stats.total_tries" when="{'0': 'aucune tentative', 'one': '{} tentative', 'other': '{} tentatives'}"></ng-pluralize></dd>
|
||||
|
||||
<dt class="col-sm-6 text-truncate" title="Nombre d'équipes">Nombre d'équipes</dt>
|
||||
<dd class="col-sm-6"><ng-pluralize count="stats.team_tries" when="{'0': 'aucune équipe', 'one': '{} équipe', 'other': '{} équipes'}"></ng-pluralize></dd>
|
||||
|
||||
<dt class="col-sm-6 text-truncate" title="Défi validé par">Défi validé par</dt>
|
||||
<dd class="col-sm-6"><ng-pluralize count="stats.solved_count" when="{'0': 'aucune équipe', 'one': '{} équipe', 'other': '{} équipes'}"></ng-pluralize></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card border-secondary" ng-controller="ExerciceFilesController">
|
||||
<div class="card-header bg-secondary text-light" type="button" data-toggle="collapse" data-target="#collapseFiles" aria-expanded="true" aria-controls="collapseFiles">
|
||||
<h4 class="m-0"><small class="glyphicon glyphicon-chevron-right" aria-hidden="true"></small> Téléchargements</h4>
|
||||
|
|
|
|||
Reference in a new issue