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

Commit 6864a70

Browse files
committed
reverted some commits that broke the build
1 parent 30c46f5 commit 6864a70

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

app/directives/challenge-links/challenge-links.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.challenge-links(ng-class="view + '-view'")
2-
a.registrants(ng-href="{{challenge|challengeLinks:'registrants'}}", ng-switch="challenge.subTrack", target="_self")
2+
a.registrants(ng-href="{{challenge|challengeLinks:'registrants'}}", ng-switch="challenge.subTrack")
33
.icon.registrants-icon
44
p(ng-switch-when="MARATHON_MATCH") {{challenge.numRegistrants[0]}}
55
p(ng-switch-default) {{challenge.numRegistrants}}
66

7-
a.submissions(ng-hide="challenge.track === 'DATA_SCIENCE'", ng-href="{{challenge|challengeLinks:'submissions'}}", target="_self")
7+
a.submissions(ng-hide="challenge.track === 'DATA_SCIENCE'", ng-href="{{challenge|challengeLinks:'submissions'}}")
88
.icon.submissions-icon
99
p {{challenge.numSubmissions}}
1010

app/my-challenges/my-challenges.controller.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ import _ from 'lodash'
146146
vm.getChallenges(currentOffset, false)
147147
}
148148

149-
window.onscroll = function() {
150-
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
151-
if (vm.totalCount > vm.myChallenges.length) {
152-
vm.loadMore()
153-
}
154-
}
155-
}
156-
157149
function _checkForParticipation() {
158150
return ChallengeService.checkChallengeParticipation(vm.handle, function(participated) {
159151
vm.neverParticipated = !participated

app/my-challenges/my-challenges.jade

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.my-challenges-container
22
.my-challenges
3-
3+
44
.page-header
55
page-state-header(handle="{{vm.handle}}", page-title="My Challenges", hide-money="true", show-back-link="true", default-state="dashboard")
66

@@ -26,7 +26,10 @@
2626

2727
.hasChallenges(ng-show="vm.myChallenges.length", state="vm.loading")
2828

29-
.data(ng-class="vm.view + '-view'")
29+
.data(ng-class="vm.view + '-view'")
3030
challenge-tile(
31-
ng-repeat="challenge in vm.myChallenges | orderBy:vm.orderBy:true",
31+
ng-repeat="challenge in vm.myChallenges | orderBy:vm.orderBy:true",
3232
challenge="challenge", view="vm.view", ng-class="vm.view + '-view'")
33+
34+
tc-section.load-more-section(state="vm.loading")
35+
button.tc-btn(ng-show="vm.totalCount > vm.myChallenges.length", ng-click="vm.loadMore()") Load More

assets/css/community/members.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@
6565
color: #a3a3ae;
6666
font-size: 12px;
6767
font-weight: 400;
68-
@media only screen and (max-width: 768px) {
69-
font-size: 5vw;
70-
}
7168
}
7269
}
7370

0 commit comments

Comments
 (0)