2018-01-06 14:14:40 +00:00
|
|
|
<div class="jumbotron text-light bg-dark">
|
2017-12-14 03:08:43 +00:00
|
|
|
<h1 class="display-4">Interface d'administration du challenge</h1>
|
2020-01-29 10:35:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<p ng-controller="VersionController">
|
|
|
|
Version de l'API : {{ v.version }}
|
|
|
|
</p>
|
|
|
|
<p ng-controller="TimestampController">
|
2020-01-29 15:01:11 +00:00
|
|
|
Latence frontend-backend : <span ng-class="{'text-success': t.diffFB <= 1000000000, 'text-warning': t.diffFB > 1000000000, 'text-danger': t.diffFB > 1500000000}"><ng-pluralize count="t.diffFB / 1000000000" when="{'one': '{} seconde', 'other': '{} secondes'}"></ng-pluralize></span><br>
|
2020-01-29 10:35:01 +00:00
|
|
|
Dernière synchronisation du frontend : {{ t.frontend | date:"mediumTime" }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
2020-01-29 15:01:11 +00:00
|
|
|
Problèmes dans les fichiers :
|
2020-01-29 10:35:01 +00:00
|
|
|
<ul ng-controller="HealthController">
|
2020-01-29 15:01:11 +00:00
|
|
|
<li ng-if="!health.length">Rien de problématique pour l'instant</li>
|
2020-01-29 10:35:01 +00:00
|
|
|
<li ng-repeat="heal in health">
|
2020-01-29 15:01:11 +00:00
|
|
|
<a ng-href="teams/{{ heal.id_team }}" ng-if="heal.id_team" class="text-warning">/{{ heal.path.split("/")[1] }}</a><a target="_blank" ng-href="submissions{{ heal.path }}" ng-if="heal.id_team">/{{ heal.path.split("/")[2] }}</a>
|
|
|
|
<a ng-href="submissions{{ heal.path }}" ng-if="!heal.id_team">{{ heal.path }}</a>
|
2020-01-29 10:35:01 +00:00
|
|
|
: {{ heal.error }}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-10-13 17:52:54 +00:00
|
|
|
</div>
|
2020-01-29 15:01:11 +00:00
|
|
|
|
|
|
|
<div class="card-deck mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4>Progression</h4>
|
|
|
|
</div>
|
|
|
|
<table class="table table-hover table-striped table-sm" ng-controller="ThemesListController">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="frotated"></th>
|
|
|
|
<th class="rotated" ng-repeat="(tid,th) in themes"><div><a ng-href="themes/{{ th.id }}">{{ th.name }}</a></div></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="table-bordered">
|
|
|
|
<tr ng-repeat="lvl in [1,2,3,4,5]">
|
|
|
|
<th class="text-center"><nobr>Challenge {{ lvl }}</nobr></th>
|
|
|
|
<td ng-repeat="(tid,theme) in themes" class="text-center text-bold" ng-controller="ExercicesStatsController">
|
|
|
|
<a ng-href="exercices/{{ exercice.id_exercice }}" ng-repeat="exercice in exercices" ng-if="$index == lvl-1 && (exercice.team_tries || lvl == 1)" ng-class="{'text-primary': exercice.solved_count == 0, 'text-success': exercice.solved_count >= 1, 'text-bold': exercice.solved_count >= 1, 'text-warning': exercice.solved_count == 0 && exercice.team_tries}">
|
|
|
|
<span ng-if="exercice.solved_count">{{ exercice.solved_count }}</span>
|
|
|
|
<span ng-if="!exercice.solved_count">{{ exercice.team_tries }}</span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tfoot ng-if="s.params.total" ng-init="team={id:0}">
|
|
|
|
<tr ng-controller="TeamController">
|
|
|
|
<td class="text-right text-light">
|
|
|
|
<span ng-if="s.params.kind == 'levels'"><span class="badge badge-success"> </span> Résolus</span>
|
|
|
|
<span ng-if="s.params.kind == 'teams'">Total résolus</span><br>
|
|
|
|
<span class="badge badge-warning"> </span> Tentatives
|
|
|
|
</td>
|
|
|
|
<td class="table-bordered bg-dark" ng-repeat="(tid,th) in themes" class="text-center" ng-if="mystats && s.params.themes.indexOf(tid-0) !== -1">
|
|
|
|
<strong>{{ mystats.themes[tid].solved }}</strong><br>
|
|
|
|
{{ mystats.themes[tid].tries }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h4>Classement</h4>
|
|
|
|
</div>
|
|
|
|
<table class="table table-hover table-striped table-sm" ng-controller="TeamsJSONController">
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="team in rank | orderBy:'rank'" ng-if="team.rank">
|
|
|
|
<td>{{ team.rank }}</td>
|
|
|
|
<td><a ng-href="teams/{{ team.id }}">{{ team.name }}</td>
|
|
|
|
<td>{{ team.score | number:0 }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|