This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
src/js/app/challenge-details Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 275
275
challengeName = challenge . challengeName ;
276
276
var reviewScorecardId = challenge . reviewScorecardId ;
277
277
vm . isDesign = ( challengeType === 'design' ) ;
278
- vm . allowDownloads = challenge . currentPhaseName === 'Registration' || challenge . currentPhaseName === 'Submission' ;
279
-
278
+ vm . allowDownloads = challenge . currentStatus === 'Active' && challenge . currentPhaseRemainingTime > 0 ;
280
279
281
280
if ( ( challenge . currentPhaseName != 'Stalled' && challenge . checkpointSubmissionEndDate && challenge . checkpointSubmissionEndDate != '' ) || ( challenge . checkpoints && challenge . checkpoints . length > 0 ) ) {
282
281
ChallengeService
Original file line number Diff line number Diff line change 1
1
< h3 > Downloads:</ h3 >
2
2
< div class ="inner ">
3
3
< ul class ="downloadDocumentList ">
4
- < li ng-if ="CD.challenge.Documents && CD.challenge.Documents. length > 0 && CD.allowDownloads && CD.allowDownloads " ng-repeat ="document in CD.challenge.Documents ">
4
+ < li ng-if ="CD.challenge.Documents. length && CD.allowDownloads && CD.isRegistered " ng-repeat ="document in CD.challenge.Documents ">
5
5
< a ng-href ="{{document.url}} "> {{document.documentName}}</ a >
6
6
</ li >
7
- < li ng-if ="CD.challenge.Documents && CD.challenge.Documents.length === 0 && CD.allowDownloads ">
8
- < strong > None </ strong >
7
+ < li ng-if ="CD.challenge.Documents.length && CD.allowDownloads && CD.isLoggedIn && ! CD.isRegistered ">
8
+ < strong > Register to Download Files </ strong >
9
9
</ li >
10
- < li ng-if ="! CD.allowDownloads ">
11
- < strong > Downloads are no longer available for this challenge </ strong >
10
+ < li ng-if ="CD.challenge.Documents.length && CD. allowDownloads && !CD.isLoggedIn ">
11
+ < strong > Log In and Register to Download Files </ strong >
12
12
</ li >
13
- < li ng-if ="! CD.challenge.Documents && CD.allowDownloads && CD.isLoggedIn && !CD.isRegistered ">
14
- < strong > Register to Download Files (if available) </ strong >
13
+ < li ng-if ="CD.challenge.Documents.length && !CD.allowDownloads ">
14
+ < strong > Downloads are not available for this challenge </ strong >
15
15
</ li >
16
- < li ng-if ="!CD.challenge.Documents && CD.allowDownloads && !CD.isLoggedIn ">
17
- < strong > Log In and Register to Download Files < br > (if available) </ strong >
16
+ < li ng-if ="!CD.challenge.Documents.length ">
17
+ < strong > None </ strong >
18
18
</ li >
19
19
</ ul >
20
20
</ div >
You can’t perform that action at this time.
0 commit comments