admin: add wchoices in team_history.json

This commit is contained in:
nemunaire 2018-12-09 19:26:34 +01:00
commit f3eabd74fc
4 changed files with 26 additions and 6 deletions

View file

@ -16,10 +16,13 @@
white-space: nowrap;
}
.bg-mfound {
background-color: #7bcfd0;
background-color: #7bcfd0 !important;
}
.bg-ffound {
background-color: #7bdfc0;
background-color: #7bdfc0 !important;
}
.bg-wchoices {
background-color: #c07bdf !important;
}
</style>
<base href="/admin/">

View file

@ -96,7 +96,7 @@
<div class="col-lg-4">
<table ng-controller="TeamHistoryController" class="table table-hover table-striped table-bordered bg-primary text-light">
<tbody>
<tr ng-repeat="row in history" ng-class="{'bg-ffound': row.kind == 'flag_found', 'bg-mfound': row.kind == 'mcq_found', 'bg-success': row.kind == 'solved', 'bg-info': row.kind == 'hint', 'bg-warning': row.kind == 'key_found'}">
<tr ng-repeat="row in history" ng-class="{'bg-ffound': row.kind == 'flag_found', 'bg-mfound': row.kind == 'mcq_found', 'bg-wchoices': row.kind == 'wchoices', 'bg-success': row.kind == 'solved', 'bg-info': row.kind == 'hint', 'bg-warning': row.kind == 'tries'}">
<td>
<nobr>{{ row.time | date:"mediumTime" }}</nobr><br>{{ row.kind }}
</td>