This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
app/directives/challenge-user-place Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ import _ from 'lodash'
59
59
$scope . challenge . thumbnailId = $scope . challenge . userDetails . submissions [ 0 ] . id
60
60
$scope . imageURL = $scope . challenge . userDetails . submissions [ 0 ] . submissionImage && $scope . challenge . userDetails . submissions [ 0 ] . submissionImage . full
61
61
$scope . selectedImage = $scope . imageURL
62
-
63
- $scope . challenge . highestPlacement = _ . min ( $scope . challenge . userDetails . submissions . filter ( function ( submission ) {
64
- return submission . type === CONSTANTS . SUBMISSION_TYPE_CONTEST && submission . placement
65
- } ) , 'placement' ) . placement
66
-
67
- if ( $scope . challenge . highestPlacement == 1 ) {
68
- $scope . challenge . wonFirst = true
69
- }
70
62
}
71
63
}
72
64
Original file line number Diff line number Diff line change 2
2
p.place ( ng-class ="{ 'first-place': challenge.wonFirst }" , ng-show ="challenge.highestPlacement" ) {{challenge.highestPlacement}}#[ span {{challenge.highestPlacement | ordinal:true}}] Place
3
3
p.place.didnt ( ng-show ="challenge.userStatus === 'NOT_FINISHED'" ) Didn't Finish
4
4
p.place.passed ( ng-show ="challenge.userStatus === 'PASSED_SCREENING'" ) Passed Screening
5
+ p.place ( ng-show ="!challenge.highestPlacement && challenge.userStatus === 'PASSED_REVIEW'" ) Passed Review
5
6
p.place.completed ( ng-show ="challenge.userStatus === 'COMPLETED'" ) COMPLETED
6
7
7
8
.thumbnail ( ng-click ="!challenge.isPrivate && imageURL && openLightbox()" , ng-class ="{hidden: challenge.userStatus !== 'PASSED_REVIEW'}" )
23
24
p.place ( ng-class ="{ 'first-place': challenge.wonFirst }" , ng-show ="challenge.highestPlacement" ) {{challenge.highestPlacement}}#[ span {{challenge.highestPlacement | ordinal:true}}] Place
24
25
p.place.didnt ( ng-show ="challenge.userStatus === 'NOT_FINISHED'" ) Didn't Finish
25
26
p.place.passed ( ng-show ="challenge.userStatus === 'PASSED_SCREENING'" ) Passed Screening
27
+ p.place ( ng-show ="!challenge.highestPlacement && challenge.userStatus === 'PASSED_REVIEW'" ) Passed Review
26
28
p.place.completed ( ng-show ="challenge.userStatus === 'COMPLETED'" ) COMPLETED
27
29
p.date-completed {{challenge.submissionEndDate | date : 'MMMM yyyy'}}
28
30
Original file line number Diff line number Diff line change 2
2
p.place ( ng-class ="{ 'first-place': challenge.wonFirst }" , ng-show ="challenge.highestPlacement" ) {{challenge.highestPlacement}}#[ span {{challenge.highestPlacement | ordinal:true}}] Place
3
3
p.place ( ng-show ="challenge.userStatus === 'NOT_FINISHED'" ) Didn't Finish
4
4
p.place ( ng-show ="challenge.userStatus === 'PASSED_SCREENING'" ) Passed Screening
5
+ p.place ( ng-show ="!challenge.highestPlacement && challenge.userStatus === 'PASSED_REVIEW'" ) Passed Review
5
6
p.place ( ng-show ="challenge.userStatus === 'COMPLETED'" ) COMPLETED
6
7
7
8
.challenge-score ( ng-hide ="challenge.userStatus !== 'PASSED_REVIEW'" )
14
15
p.place ( ng-class ="{ 'first-place': challenge.wonFirst }" , ng-show ="challenge.highestPlacement" ) {{challenge.highestPlacement}}#[ span {{challenge.highestPlacement | ordinal:true}}] Place
15
16
p.place ( ng-show ="challenge.userStatus === 'NOT_FINISHED'" ) Didn't Finish
16
17
p.place ( ng-show ="challenge.userStatus === 'PASSED_SCREENING'" ) Passed Screening
18
+ p.place ( ng-show ="!challenge.highestPlacement && challenge.userStatus === 'PASSED_REVIEW'" ) Passed Review
17
19
p.place ( ng-show ="challenge.userStatus === 'COMPLETED'" ) Completed
18
20
p.date-completed {{challenge.submissionEndDate | date : 'MMMM yyyy'}}
19
21
You can’t perform that action at this time.
0 commit comments