dashboard: extract progress and visual changes
This commit is contained in:
parent
764a790b11
commit
f47eb68505
3 changed files with 45 additions and 39 deletions
|
@ -24,7 +24,7 @@
|
|||
height: calc(100vh / 5 - 0.3vh);
|
||||
margin-left: 0.2%;
|
||||
margin-bottom: 0.2vh;
|
||||
width: calc(100vw / 13 - 0.22vw);
|
||||
width: calc(100vw / 13 - 0.26vw);
|
||||
}
|
||||
.student-title {
|
||||
width: calc(2 * (100vw / 13 - 0.22vw) + 0.2vw);
|
||||
|
@ -47,7 +47,7 @@
|
|||
.login {
|
||||
max-width: 122px;
|
||||
}
|
||||
.badge {
|
||||
.badge.badge-sm {
|
||||
font-size: 59%;
|
||||
padding: .15em .35em;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card student d-flex flex-column justify-content-between" ng-repeat="(login, mychallenges) in students" style="background-image: url('https://photos.cri.epita.fr/square/{{ mychallenges.img | lowercase }}')">
|
||||
<div class="card student d-flex flex-column justify-content-between" ng-repeat="(login, mychallenges) in students" ng-if="login != 'nemunaire'" style="background-image: url('https://photos.cri.epita.fr/square/{{ mychallenges.img | lowercase }}')">
|
||||
<h5 class="login text-truncate" title="{{ login }}">
|
||||
<span class="badge" ng-class="{'badge-success': mychallenges['ping'] && mychallenges['ping'].recent < 120, 'badge-info': mychallenges['ping'] && mychallenges['ping'].recent >= 120 && mychallenges['ping'].recent < 300, 'badge-warning': mychallenges['ping'] && mychallenges['ping'].recent >= 300 && mychallenges['ping'].recent < 900, 'badge-danger': mychallenges['ping'] && mychallenges['ping'].recent >= 900, 'badge-dark': !mychallenges['ping']}" title="{{ mychallenges['ping'].time }}">
|
||||
💻
|
||||
|
@ -116,7 +116,7 @@
|
|||
<a class="text-dark" href="/dashboard/{{login}}">{{ login }}</a>
|
||||
</h5>
|
||||
<div class="d-flex flex-wrap justify-content-around" style="padding: 0">
|
||||
<span class="badge" style="margin-left: .07rem" ng-repeat="(ch,t) in tuto_progress[tutoid]" ng-class="{'badge-warning': mychallenges[ch] && mychallenges[ch].recent && (tutoid != 0 && mychallenges[ch].recent > 300), 'badge-info': mychallenges[ch] && mychallenges[ch].recent && mychallenges[ch].recent <= 300 && mychallenges[ch].recent >= 120, 'badge-success': mychallenges[ch] && mychallenges[ch].recent && (tutoid == 0 || mychallenges[ch].recent < 120), 'badge-danger': !mychallenges[ch]}" title="{{ t.title }} @ {{ mychallenges[ch].time | date: 'medium' }} {{ mychallenges[ch].recent }}" ng-bind="t.label"></span>
|
||||
<span class="badge badge-sm" style="margin-left: .07rem" ng-repeat="(ch,t) in tuto_progress[tutoid]" ng-class="{'badge-warning': mychallenges[ch] && mychallenges[ch].recent && (tutoid != 0 && mychallenges[ch].recent > 300), 'badge-info': mychallenges[ch] && mychallenges[ch].recent && mychallenges[ch].recent <= 300 && mychallenges[ch].recent >= 120, 'badge-success': mychallenges[ch] && mychallenges[ch].recent && (tutoid == 0 || mychallenges[ch].recent < 120), 'badge-danger': !mychallenges[ch]}" title="{{ t.title }} @ {{ mychallenges[ch].time | date: 'medium' }} {{ mychallenges[ch].recent }}" ng-bind="t.icon"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -126,6 +126,7 @@
|
|||
<script src="js/angular-resource.min.js"></script>
|
||||
<script src="js/angular-route.min.js"></script>
|
||||
<script src="js/angular-sanitize.min.js"></script>
|
||||
<script src="js/adlin-common.js"></script>
|
||||
<script src="js/adlin-dashboard.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in a new issue