server/admin/static/views/home.html

74 lines
3.3 KiB
HTML
Raw Normal View History

<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': '{}&nbsp;seconde', 'other': '{}&nbsp;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
2022-05-22 17:10:41 +00:00
<div class="row mb-3">
<div class="col-sm-7 col-md-8 col-lg-9">
2020-01-29 15:01:11 +00:00
<div class="card">
<div class="card-header">
<h4>Progression</h4>
</div>
2022-05-22 17:10:41 +00:00
<div style="overflow: auto;">
2022-06-01 11:25:58 +00:00
<table class="table table-hover table-striped table-sm mb-0" ng-controller="ExercicesStatsController">
2020-01-29 15:01:11 +00:00
<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>
2022-06-01 11:25:58 +00:00
<tbody class="table-bordered">
2020-01-29 15:01:11 +00:00
<tr ng-repeat="lvl in [1,2,3,4,5]">
<th class="text-center"><nobr>Challenge {{ lvl }}</nobr></th>
2022-05-22 17:10:41 +00:00
<td ng-repeat="(tid,theme) in themes" class="text-center text-bold">
2022-06-01 11:25:58 +00:00
<a ng-href="exercices/{{ exercices[Utils.keys(theme.exercices)[lvl-1]].id_exercice }}" ng-if="exercices[Utils.keys(theme.exercices)[lvl-1]].team_tries || lvl == 1" ng-class="{'text-primary': exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count == 0, 'text-success': exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count >= 1, 'text-bold': exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count >= 1, 'text-warning': exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count == 0 && exercices[Utils.keys(theme.exercices)[lvl-1]].team_tries}">
<span ng-if="exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count">{{ exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count }}</span>
<span ng-if="!exercices[Utils.keys(theme.exercices)[lvl-1]].solved_count">{{ exercices[Utils.keys(theme.exercices)[lvl-1]].team_tries }}</span>
2020-01-29 15:01:11 +00:00
</a>
</td>
</tr>
</tbody>
2022-05-22 17:10:41 +00:00
</table>
</div>
2020-01-29 15:01:11 +00:00
</div>
2022-05-22 17:10:41 +00:00
</div>
<div class="col-sm-5 col-md-4 col-lg-3">
2020-01-29 15:01:11 +00:00
<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>
2022-05-22 17:10:41 +00:00
</div>
2020-01-29 15:01:11 +00:00
</div>