Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 49c9d6c

Browse files
committedSep 9, 2015
Finished simple version of design thumbnails
1 parent 760bcb7 commit 49c9d6c

File tree

6 files changed

+2
-5
lines changed

6 files changed

+2
-5
lines changed
 

‎app/directives/challenge-tiles/challenge-tile.directive.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
i.fa.fa-comment
1212

1313
div.thumbnail(ng-if="challenge.track === 'DESIGN'")
14-
img(ng-src="http://studio.topcoder.com/studio.jpg?module=DownloadSubmission&sbmid={{challenge.thumbnailId}}&sbt=full")
14+
img(ng-src="http://studio.topcoder.com/studio.jpg?module=DownloadSubmission&sbmid={{challenge.thumbnailId}}&sbt=thumb", fallback-src="/images/lock-icon-small.png")
1515

1616
p.roles Roles: {{challenge.userDetails.roles | listRoles}}
1717

‎app/directives/challenge-tiles/challenge-tile.directive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
// temporary...right now many challenges have a `null` track
4141
challenge.track = challenge.track ? challenge.track.trim() : 'DESIGN';
4242
if (challenge.track == 'DESIGN' && challenge.userDetails.submissions && challenge.userDetails.submissions.length > 0) {
43-
console.log('FLONKY');
4443
challenge.thumbnailId = challenge.userDetails.submissions[0].id;
4544
}
4645

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
(function() {
22
'use strict';
3-
angular.module('tcUIComponents', []);
3+
angular.module('tcUIComponents', ['dcbImgFallback']);
44
})();

‎assets/css/directives/challenge-tiles.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
justify-content: center;
4646
margin: 20px 0;
4747
img {
48-
width: 170px;
49-
height: 170px;
5048
}
5149
}
5250

‎assets/images/lock-icon-small.png

1.13 KB
Loading

‎assets/images/lock-icon.png

5.48 KB
Loading

0 commit comments

Comments
 (0)
This repository has been archived.