Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1d02080

Browse files
author
vikasrohit
committed
AS#111130683709862, Topcoder Team Live banner (for Friday broadcast)
-- Adapted banner directive to show HTML inside description field -- Added TTL banner
1 parent 70175c9 commit 1d02080

File tree

6 files changed

+27
-3
lines changed

6 files changed

+27
-3
lines changed

app/directives/tc-banner/tc-banner.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
img(ng-src="{{vm.img}}")
44
.title(ng-bind="vm.title")
55
.content(ng-transclude, ng-show="transcluded")
6-
.description(ng-bind="vm.description")
6+
.description(ng-bind-html="vm.description")
77
.ctas
88
.cta(ng-repeat="link in vm.ctas")
99
a(class="{{link.cssClass}}", title="{{link.title}}", ng-href="{{link.url}}", ng-if="link.url") {{link.title}}

app/my-dashboard/my-dashboard.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
.challenges(id="challenges", ui-view="my-challenges")
77

8+
.ttl
9+
tc-banner(theme="black", banner-name="ttl")
10+
811
.tco
912
tc-banner(theme="black", banner-name="tco16")
1013

app/services/bannerDataService.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ import angular from 'angular'
3535
url: 'http://tco16.topcoder.com/latest/overview/',
3636
cssClass: 'tc-btn tc-btn-s tco-cta'
3737
}]
38+
},
39+
'ttl': {
40+
title: 'Episode #3 | Featuring Jesse D’Amato Ford',
41+
img: require('../../assets/images/team-live-logo.png'),
42+
description: 'APR 15 / 10:30am EST / Live on <a href="https://plus.google.com/events/c86vvsum04lmq3bnd0bqp719img"> #GoogleHangoutOnAir</a>',
43+
ctas: [{
44+
title: 'Tune In',
45+
url: 'https://plus.google.com/events/c86vvsum04lmq3bnd0bqp719img',
46+
cssClass: 'tc-btn tc-btn-s'
47+
}]
3848
}
3949
}
4050
}

assets/css/my-dashboard/my-dashboard.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
background-color: $white;
1212
}
1313

14-
.challenges, .srms, .programs, .tco, .community-updates {
14+
.challenges, .srms, .programs, .tco, .ttl, .community-updates {
1515
@include module-l;
1616
margin-top: 1px;
1717
width: 100%;
@@ -23,7 +23,18 @@
2323
}
2424
}
2525

26-
.challenges, .srms, .programs, .tco, .community-updates {
26+
.ttl {
27+
.tc-banner-placeholder {
28+
background: url(../../images/team-live-bg.png) repeat;
29+
.image {
30+
img {
31+
width: auto;
32+
}
33+
}
34+
}
35+
}
36+
37+
.challenges, .srms, .programs, .tco, .ttl, .community-updates {
2738
padding-top: 0px;
2839
}
2940

assets/images/team-live-bg.png

493 Bytes
Loading

assets/images/team-live-logo.png

7.56 KB
Loading

0 commit comments

Comments
 (0)