maatma: add mistake indications on home page
This commit is contained in:
parent
6d8f38d749
commit
456694c330
1 changed files with 8 additions and 3 deletions
|
@ -15,9 +15,14 @@
|
|||
</h2>
|
||||
|
||||
<div ng-controller="ProgressionController" ng-if="isLogged">
|
||||
<div ng-repeat="(tutoid,tuto) in tuto_progress" class="mb-2">
|
||||
<strong class="mr-2">TP {{tutoid+1}}</strong>
|
||||
<span class="badge mr-1" ng-repeat="(ch,t) in tuto_progress[tutoid]" ng-class="{'badge-success': mychallenges[ch], 'badge-danger': !mychallenges[ch]}" title="{{ t.title }} @ {{ mychallenges[ch].time | date: 'medium' }} {{ mychallenges[ch].recent }}" ng-bind="t.label"></span>
|
||||
<div ng-repeat="(tutoid,tuto) in tuto_progress" class="mb-2 row">
|
||||
<strong class="col-auto mr-2">TP {{tutoid+1}}</strong>
|
||||
<div class="col">
|
||||
<div class="ml-1 align-items-center" ng-class="{'d-inline-block': !mychallenges[ch] || !mychallenges[ch].error || mychallenges[ch].error == 'OK', 'd-flex': !(!mychallenges[ch] || !mychallenges[ch].error || mychallenges[ch].error == 'OK')}" ng-repeat="(ch,t) in tuto_progress[tutoid]">
|
||||
<span class="badge mr-1" ng-class="{'badge-success': mychallenges[ch] && (!mychallenges[ch].error || mychallenges[ch].error == 'OK'), 'badge-warning': mychallenges[ch] && mychallenges[ch].error && mychallenges[ch].error != 'OK', 'badge-danger': !mychallenges[ch] || !mychallenges[ch].time}" title="{{ t.title }} @ {{ mychallenges[ch].time | date: 'medium' }} {{ mychallenges[ch].recent }}" ng-bind="t.label"></span>
|
||||
<pre class="ml-1 mb-0" ng-show="mychallenges[ch] && mychallenges[ch].error && mychallenges[ch].error != 'OK'">{{ mychallenges[ch].error }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue