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

Commit 802bdbb

Browse files
authored
Merge pull request #920 from ThomasKranitsas/dev
Misc bug fixes
2 parents 2276527 + 1b4d814 commit 802bdbb

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
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")
2+
a.registrants(ng-href="{{challenge|challengeLinks:'registrants'}}", ng-switch="challenge.subTrack", target="_self")
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'}}")
7+
a.submissions(ng-hide="challenge.track === 'DATA_SCIENCE'", ng-href="{{challenge|challengeLinks:'submissions'}}", target="_self")
88
.icon.submissions-icon
99
p {{challenge.numSubmissions}}
1010

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ 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+
149157
function _checkForParticipation() {
150158
return ChallengeService.checkChallengeParticipation(vm.handle, function(participated) {
151159
vm.neverParticipated = !participated

app/my-challenges/my-challenges.jade

Lines changed: 3 additions & 6 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,10 +26,7 @@
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
color: #a3a3ae;
6666
font-size: 12px;
6767
font-weight: 400;
68+
@media only screen and (max-width: 768px) {
69+
font-size: 5vw;
70+
}
6871
}
6972
}
7073

0 commit comments

Comments
 (0)