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 +20
-1
lines changed
app/directives/challenge-tiles Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 10
10
a( ng-href ="http://apps.{{DOMAIN}}/forums//?module=Category&categoryID={{challenge.forumId}}" )
11
11
i.fa.fa-comment
12
12
13
+ div.thumbnail ( ng-if ="challenge.track === 'DESIGN'" )
14
+ img( ng-src ="http://studio.topcoder.com/studio.jpg?module=DownloadSubmission&sbmid={{challenge.thumbnailId}}&sbt=full" )
15
+
13
16
p.roles Roles: {{challenge.userDetails.roles | listRoles}}
14
17
15
18
.challenge-status
Original file line number Diff line number Diff line change 38
38
challenge . registrationTimeLeft = ( registrationDate - now ) / ( 24 * 60 * 60 * 1000 ) ;
39
39
challenge . submissionTimeLeft = ( submissionDate - now ) / ( 24 * 60 * 60 * 1000 ) ;
40
40
// temporary...right now many challenges have a `null` track
41
- challenge . track = challenge . track ? challenge . track . trim ( ) : 'DEVELOP' ;
41
+ challenge . track = challenge . track ? challenge . track . trim ( ) : 'DESIGN' ;
42
+ if ( challenge . track == 'DESIGN' && challenge . userDetails . submissions && challenge . userDetails . submissions . length > 0 ) {
43
+ console . log ( 'FLONKY' ) ;
44
+ challenge . thumbnailId = challenge . userDetails . submissions [ 0 ] . id ;
45
+ }
42
46
43
47
// challenge.phaseMsg = preparePhaseMessage(challenge);
44
48
Original file line number Diff line number Diff line change 38
38
line-height : 25px ;
39
39
}
40
40
}
41
+
42
+ .thumbnail {
43
+ display : flex ;
44
+ flex-direction : row ;
45
+ justify-content : center ;
46
+ margin : 20px 0 ;
47
+ img {
48
+ width : 170px ;
49
+ height : 170px ;
50
+ }
51
+ }
52
+
41
53
.roles {
42
54
margin-top : 10px ;
43
55
margin-bottom : 20px ;
You can’t perform that action at this time.
0 commit comments