This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 4 files changed +15
-3
lines changed
directives/challenge-tile
4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
.phase-action ( ng-show ="challenge.userAction" , ng-switch ="challenge.userAction" )
23
23
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Submit" , ng-href ="{{challenge|challengeLinks:'submit'}}" ) Submit
24
+ a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Appeal" , ng-href ="{{challenge|challengeLinks:'viewScorecards'}}" ) View Scorecards
25
+ a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Appeal" , ng-href ="{{challenge|challengeLinks:'completeAppeals'}}" ) Complete Appeals
24
26
25
27
.submitted ( ng-switch-when ="Submitted" ) Submitted
26
28
97
99
98
100
.phase-action ( ng-switch ="challenge.userAction" )
99
101
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Submit" , ng-href ="{{challenge|challengeLinks:'submit'}}" ) Submit
102
+ a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Appeal" , ng-href ="{{challenge|challengeLinks:'viewScorecards'}}" ) View Scorecards
103
+ a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost.submit ( ng-switch-when ="Appeal" , ng-href ="{{challenge|challengeLinks:'completeAppeals'}}" ) Complete Appeals
100
104
101
105
.submitted ( ng-switch-when ="Submitted" ) Submitted
102
106
Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ import _ from 'lodash'
69
69
return String . supplant ( 'https://{subdomain}.{domain}/challenge-details/{id}/?type={track}' , data )
70
70
case 'detail' :
71
71
return String . supplant ( 'https://{subdomain}.{domain}/challenge-details/{id}/?type={track}' , data )
72
+ case 'viewScorecards' :
73
+ return String . supplant ( 'https://software.{domain}/review/actions/ViewProjectDetails?pid={id}' , data )
74
+ case 'completeAppeals' :
75
+ return String . supplant ( 'https://software.{domain}/review/actions/EarlyAppeals?pid={id}' , data )
72
76
}
73
77
}
74
78
}
Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ import moment from 'moment'
105
105
}
106
106
} )
107
107
}
108
+ if ( challenge . userCurrentPhase === 'Appeals' ) {
109
+ challenge . userAction = 'Appeal'
110
+ }
108
111
109
112
if ( challenge . userCurrentPhaseEndTime ) {
110
113
var fullTime = challenge . userCurrentPhaseEndTime
Original file line number Diff line number Diff line change @@ -245,8 +245,8 @@ challenge-tile .challenge.tile-view {
245
245
min-height : 55px ;
246
246
247
247
.submit {
248
- margin-bottom : 25 px ;
249
- display : inline- block ;
248
+ margin : 12 px ;
249
+ display : block ;
250
250
}
251
251
252
252
.submitted {
@@ -498,7 +498,8 @@ challenge-tile .challenge.list-view {
498
498
499
499
.phase-action {
500
500
.submit {
501
- display : inline-block ;
501
+ display : block ;
502
+ margin : 6px 0 ;
502
503
}
503
504
504
505
.submitted {
You can’t perform that action at this time.
0 commit comments