This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 3 files changed +16
-3
lines changed
directives/challenge-tile
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 12
12
.challenge-details
13
13
p.currentPhase {{challenge.userCurrentPhase}}
14
14
15
- .challenge-calendar ( ng-show ="challenge.userCurrentPhaseEndTime" )
16
- p.ends-in Ends In
15
+ .challenge-calendar ( ng-show ="challenge.userCurrentPhaseEndTime" , ng-class = "{'challenge-late' : challenge.isLate}" )
16
+ p.ends-in {{challenge.isLate ? 'Late for' : ' Ends In'}}
17
17
p.time-remaining {{challenge.userCurrentPhaseEndTime[0]}}
18
18
p.unit-of-time {{challenge.userCurrentPhaseEndTime[1]}}
19
19
88
88
p.roles ( ng-hide ="challenge.track === 'DATA_SCIENCE'" ) #[ span Role: ] #[ span {{challenge.userDetails.roles | listRoles}}]
89
89
90
90
.challenge-details
91
- .challenge-info
91
+ .challenge-info ( ng-class = "{'challenge-late' : challenge.isLate}" )
92
92
p.currentPhase {{challenge.userCurrentPhase}}
93
93
94
94
p.ends-in ( ng-show ="challenge.userCurrentPhaseEndTime" ) Ends: {{challenge.userCurrentPhaseEndTime[2] | localTime}}
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ import moment from 'moment'
119
119
// Add actual time ['2', 'months', actual date]
120
120
timeAndUnit . push ( fullTime )
121
121
challenge . userCurrentPhaseEndTime = timeAndUnit
122
+ challenge . isLate = moment ( ) . diff ( fullTime ) > 0 // If > 0 then the challenge has 'Late Deliverables' or
122
123
}
123
124
} )
124
125
}
Original file line number Diff line number Diff line change @@ -222,6 +222,12 @@ challenge-tile .challenge.tile-view {
222
222
text-transform : lowercase ;
223
223
color : #7F7F7F ;
224
224
}
225
+
226
+ & .challenge-late {
227
+ .ends-in , .time-remaining , .unit-of-time {
228
+ color : #ee6666 ;
229
+ }
230
+ }
225
231
}
226
232
227
233
.stalled-challenge {
@@ -462,6 +468,12 @@ challenge-tile .challenge.list-view {
462
468
font-size : 14px ;
463
469
color : #A3A3AE ;
464
470
}
471
+
472
+ & .challenge-late {
473
+ .ends-in , .time-remaining , .unit-of-time {
474
+ color : #ee6666 ;
475
+ }
476
+ }
465
477
}
466
478
467
479
.marathon-score {
You can’t perform that action at this time.
0 commit comments