This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 5 files changed +47
-9
lines changed 5 files changed +47
-9
lines changed Original file line number Diff line number Diff line change 67
67
)
68
68
.name {{subtrack.subTrack | track}}
69
69
70
- .ranking ( ng-if ="subtrack.rating " )
70
+ .ranking ( ng-if ="subtrack.statType == 'Rating' " )
71
71
.number.rating ( style ="color: {{subtrack.rating | ratingColor}}" )
72
72
| {{subtrack.rating}}
73
73
74
74
.tag Rating
75
75
76
- .ranking ( ng-if ="subtrack.rank && !subtrack.rating " )
76
+ .ranking ( ng-if ="subtrack.statType == 'Ranking' " )
77
77
.number {{subtrack.rank | ordinal}}
78
78
79
79
.tag Ranking
Original file line number Diff line number Diff line change
1
+ .design ( ng-if ="vm.track == 'DESIGN'" )
2
+
3
+ .bottom
4
+ h2.detailed Details
5
+
6
+ ul.vertical-stats
7
+ li.first
8
+ .left Win Percentage
9
+ .right {{vm.typeStats.winPercent | percentage | empty}}
10
+
11
+ li( ng-if ="profileVm.isUser" )
12
+ .left Inquiries
13
+ .right {{vm.typeStats.numInquiries | empty}}
14
+
15
+ li( ng-if ="profileVm.isUser" )
16
+ .left Submissions
17
+ .right {{vm.typeStats.submissions | empty}}
18
+
19
+ li
20
+ .left Submission Rate
21
+ .right {{vm.typeStats.submissionRate | percentage | empty}}
22
+
23
+ li.first ( ng-if ="profileVm.isUser" )
24
+ .left Passed Screening
25
+ .right {{vm.typeStats.passedScreening | empty}}
26
+
27
+ li
28
+ .left Screening Success Rate
29
+ .right {{vm.typeStats.screeningSuccessRate | percentage | empty}}
30
+
31
+ li
32
+ .left Average Placement
33
+ .right {{vm.typeStats.avgPlacement | number: 2 | empty}}
Original file line number Diff line number Diff line change 28
28
vm . pageName = vm . subTrack . toLowerCase ( ) . replace ( / _ / g, ' ' ) ;
29
29
30
30
vm . tabs = [ ] ;
31
- if ( vm . track !== 'DESIGN' ) {
32
- vm . tabs . push ( 'statistics' ) ;
33
- }
31
+ vm . tabs . push ( 'statistics' ) ;
34
32
35
33
if ( vm . track !== 'COPILOT' ) {
36
34
vm . tabs . push ( vm . subTrack === 'SRM' ? 'Past srm' : 'challenges' ) ;
Original file line number Diff line number Diff line change 20
20
p.label {{item.label}}
21
21
22
22
include ./develop/develop-statistics.jade
23
- //- yes, challenges :( this is confusing and needs refactoring
24
- include ./design/design-challenges.jade
23
+ include ./design/design-statistics.jade
25
24
include ./data/data-statistics.jade
26
25
27
- tc-tab( heading ="{{vm.tabs[1]}}" , ng-if = "vm.track === 'DATA_SCIENCE' || vm.track === 'DEVELOP'" )
26
+ tc-tab( heading ="{{vm.tabs[1]}}" )
28
27
.subtrack-stats
29
28
responsive-carousel( data ="vm.subTrackStats" , handle ="{{vm.handle}}" )
30
29
.carousel-elem
37
36
p.value ( ng-hide ="item.label === 'rating'" ) {{item.val | empty}}
38
37
39
38
p.label {{item.label}}
40
- include ./develop/develop-challenges.jade
39
+ include ./develop/develop-challenges.jade
40
+ include ./design/design-challenges.jade
41
41
include ./data/data-challenges.jade
Original file line number Diff line number Diff line change 527
527
}
528
528
529
529
}
530
+
531
+ .design {
532
+ // override height of the statistics section for design track as we don't have limited stats for design
533
+ ul .vertical-stats {
534
+ height : 200px ;
535
+ }
536
+ }
530
537
}
531
538
}
532
539
.categoryNav {
You can’t perform that action at this time.
0 commit comments