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

Commit c495bf3

Browse files
committed
Merge pull request #70 from appirio-tech/dev
Release dev to qa
2 parents 088c595 + 15de55e commit c495bf3

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

app/challenges/challenges.jade

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ div(ng-controller="challenges as vm")
5151
.ca SUBMISSIONS
5252
.vl(ng-bind="challenge.numSubmissions")
5353
.actns
54-
a.btn.secondary.btnReg(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop", target="_blank") View
54+
a.btn.secondary.btnReg(ng-href="{{challenge.url}}", target="_blank") View
5555

5656
a.lnk(href='#view-challenges', du-smooth-scroll) View all challenges
5757

@@ -85,12 +85,12 @@ div(ng-controller="challenges as vm")
8585
li.liRw.col-xs-12(ng-repeat="challenge in vm.challenges")
8686
.chrw.clearfix
8787
figure.col1.imgWrap.pull-left
88-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop")
88+
a(ng-href="{{challenge.url}}")
8989
img.challenge-image(ng-src="{{challenge.thumb}}", alt="challenge image")
9090
.chge.col2.pull-left
9191
.inner
9292
h4.chTitle
93-
a.ellipses(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop") {{challenge.challengeName}}
93+
a.ellipses(ng-href="{{challenge.url}}") {{challenge.challengeName}}
9494
.rw.ellipses
9595
span.lbl Technologies:&#32
9696
span.val {{challenge.technologies}}
@@ -109,11 +109,11 @@ div(ng-controller="challenges as vm")
109109
.regs.col4.pull-left
110110
.inner
111111
.reg
112-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop#viewRegistrant") {{challenge.numRegistrants}}
112+
a(ng-href="{{challenge.url}}#viewRegistrant") {{challenge.numRegistrants}}
113113
.subs.col5.pull-left
114114
.inner
115115
.sub
116-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop#viewRegistrant") {{challenge.numSubmissions}}
116+
a(ng-href="{{challenge.url}}#viewRegistrant") {{challenge.numSubmissions}}
117117

118118
ul.challenges.row(ng-show="isGrid")
119119
li.col-xs-12.col-sm-6.col-md-4.col-lg-3(ng-repeat="challenge in vm.challenges")
@@ -124,7 +124,7 @@ div(ng-controller="challenges as vm")
124124

125125
.challenge-details
126126
h2.challenge-header.ellipses
127-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop") {{challenge.challengeName}}
127+
a(ng-href="{{challenge.url}}") {{challenge.challengeName}}
128128

129129
.challenge-data
130130
p.ellipses #[span.challenge-field Technologies:] {{challenge.technologies}}
@@ -147,13 +147,13 @@ div(ng-controller="challenges as vm")
147147
.stats-type REGISTRANTS
148148

149149
.stats-value
150-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop#viewRegistrant") {{challenge.numRegistrants}}
150+
a(ng-href="{{challenge.url}}#viewRegistrant") {{challenge.numRegistrants}}
151151

152152
.col-xs-6.challenge-submissions.challenge-stat
153153
.stats-type SUBMISSIONS
154154

155155
.stats-value
156-
a(ng-href="https://www.{{vm.domain}}/challenge-details/{{challenge.challengeId}}/?type=develop#viewRegistrant") {{challenge.numSubmissions}}
156+
a(ng-href="{{challenge.url}}#viewRegistrant") {{challenge.numSubmissions}}
157157

158158
ul.section-actions
159159
li(ng-show="vm.hasMore && !vm.loading") #[a(ng-click="vm.loadMore()") Load more...]

app/index.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ html
5555

5656
meta(itemprop='name', content='topcoder iOS Member Program')
5757
meta(itemprop='description', content='iOS/SWIFT challenges on topcoder.com, brought to you by Apple and Appirio. Now is the time to compete!')
58-
meta(itemprop='image', content='/content/images/logo-landing.png')
58+
meta(itemprop='image', content='http://apple.topcoder.com/content/images/logo-landing.png')
5959

6060
meta(name='twitter:card', content='iOS/SWIFT challenges on topcoder.com, brought to you by Apple and Appirio. Now is the time to compete!')
6161
meta(name='twitter:site', content='@topcoder')
6262
meta(name='twitter:title', content='topcoder iOS Member Program')
6363
meta(name='twitter:description', content='iOS/SWIFT challenges on topcoder.com, brought to you by Apple and Appirio. Now is the time to compete!')
6464
meta(name='twitter:creator', content='@topcoder')
65-
meta(name='twitter:image:src', content='/content/images/logo-landing.png')
65+
meta(name='twitter:image:src', content='http://apple.topcoder.com/content/images/logo-landing.png')
6666

6767
meta(property='og:url', content='http://apple.topcoder.com')
6868
meta(property='og:title', content='topcoder iOS Member Program')
6969
meta(property='og:description', content='iOS/SWIFT challenges on topcoder.com, brought to you by Apple and Appirio. Now is the time to compete!')
7070
meta(property='og:site_name', content='topcoder iOS Member Program')
71-
meta(property='og:image', content='/content/images/logo-landing.png')
71+
meta(property='og:image', content='http://apple.topcoder.com/content/images/logo-landing.png')
7272

7373
meta(http-equiv="X-UA-Compatible", content="IE=edge, chrome=1")
7474

app/services/helpers.service.coffee

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
Helpers = () ->
3+
Helpers = (ENV) ->
44
formatArray: (data) ->
55
formatField = (key) ->
66
challenge[key] = challenge[key].join ', '
@@ -16,6 +16,15 @@ Helpers = () ->
1616
if (!challenge.platforms)
1717
challenge.platforms = 'iOS'
1818

19+
id = challenge.challengeId
20+
21+
if challenge.challengeType == 'Assembly Competition'
22+
type = ''
23+
else
24+
type = '/?type=develop'
25+
26+
challenge.url = "https://www.#{ ENV.domain }/challenge-details/#{ id }#{ type }"
27+
1928
if challenge.reviewType and challenge.reviewType is 'PEER'
2029
challenge.icon = 'peer'
2130
challenge.thumb = 'content/images/peer-swift-challenge.png'
@@ -24,5 +33,6 @@ Helpers = () ->
2433
challenge.thumb = 'content/images/swift-challenge-1.png'
2534

2635
angular.module('lime-topcoder').factory 'Helpers', [
36+
'ENV'
2737
Helpers
2838
]

0 commit comments

Comments
 (0)