Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
acd1e52
SUP-672, Review dates are not showing on the challenge details
vikasrohit Jun 1, 2015
c4e77ef
Merge branch 'dev' into vikas-sup-280-sorting-challenges-srm
vikasrohit Jun 1, 2015
6b06c36
SUP-280, Add Sorting to My Challenges and SRM tables on Member Dashboard
vikasrohit Jun 1, 2015
e4ad544
SUP-674, Shrink header
vikasrohit Jun 1, 2015
ecf9854
Merge pull request #95 from appirio-tech/vikas-sup-672-reviewdate-cha…
vikasrohit Jun 1, 2015
65e70a4
Merge pull request #96 from appirio-tech/vikas-sup-674-shrink-header
vikasrohit Jun 1, 2015
43e234e
Merge pull request #97 from appirio-tech/vikas-sup-674-shrink-header
Jun 2, 2015
d3d5ab6
Merge pull request #98 from appirio-tech/vikas-sup-280-sorting-challe…
Jun 2, 2015
df09a4f
Merge pull request #99 from appirio-tech/vikas-sup-280-sorting-challe…
Jun 2, 2015
be7af8d
Merge pull request #100 from appirio-tech/vikas-sup-672-reviewdate-ch…
Jun 3, 2015
4d3e2d7
SUP-703, remove results from submission tab since they don't match th…
vikasrohit Jun 5, 2015
e3afdb0
Merge pull request #101 from appirio-tech/vikas-sup-703-remove-result…
Jun 5, 2015
6270769
Merge pull request #102 from appirio-tech/dev
Jun 5, 2015
6e62a07
set normal challenge view to not show peer
thabofletcher Jun 8, 2015
acca119
fix !peer conditional
thabofletcher Jun 9, 2015
9b5f19c
Merge pull request #104 from appirio-tech/SUP-735-challenge-results-n…
thabofletcher Jun 9, 2015
abf9896
Merge pull request #105 from appirio-tech/SUP-722-my-challenges-doesn…
thabofletcher Jun 9, 2015
db06e0e
Merge pull request #106 from appirio-tech/dev
thabofletcher Jun 9, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/css/my-dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@
background-position: 50% 50%;
color: #fff;
}
@media only screen and (min-width: 768px) {
.member-profile-header {
padding: 15px 0;
}
}

.member-profile {
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/app/challenge-details/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h2>Reliability Rating and Bonus</h2>
<th class="subDateColumn">
<div>Submission Date</div>
</th>
<th class="successIconColumn">
<th class="successIconColumn" ng-show="!CD.isPeerReviewed">
<div>Result</div>
</th>
</tr>
Expand All @@ -290,7 +290,7 @@ <h2>Reliability Rating and Bonus</h2>
<td ng-class="CD.challengeType == 'design' ? 'regDateColumnDesign' : 'regDateColumn'" ng-bind="registrant.registrationDate | formatDate:2"></td>
<td ng-class="CD.challengeType == 'design' ? 'subDateColumnDesign' : 'subDateColumn'" ng-bind="registrant.submissionDate | formatDate:2"></td>
<!--bugfix refactored-challenge-details-68: added missing icons -->
<td class="successIconColumn">
<td class="successIconColumn" ng-show="!CD.isPeerReviewed">
<i class="{{registrant.winner ? 'successIcon' : registrant.submissionStatus.match('Failed') ? 'failureIcon' : ''}}"
title="{{registrant.winner ? 'Pass' : registrant.submissionStatus.match('Failed') ? 'Fail' : ''}}"></i>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ <h3><small>$</small><span ng-bind="CD.challenge.prize[j]"></span></h3>
{{CD.challenge.submissionEndDate | formatDate:2}}
</span>
</p>
<p ng-show="CD.inReview && CD.isPeerReviewed">
<label>Review By:</label>
<span>
{{CD.challenge.currentPhaseEndDate | formatDate:2}}
</span>
</p>

<p ng-if="CD.challenge.finalFixEndDate" class="{{CD.challenge.finalFixEndDate ? 'last' : ''"><label>Final Submission:</label>
<span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h2>Round 2 (Final)</h2>
<!--#/end competitionDetails-->
</article>

<article ng-if="!CD.isDesign && CD.submissions.length > 0 && !CD.challenge.reviewType === 'PEER'">
<article ng-if="!CD.isDesign && CD.submissions.length > 0 && !(CD.challenge.reviewType === 'PEER')">
<div ng-if="CD.challenge.challengeType != 'Code' && CD.firstPlaceSubmission" class="winnerRow">
<div class="place first">1<span>st</span></div>
<!-- #/end place-->
Expand Down
1 change: 1 addition & 0 deletions src/js/app/challenges/services/challengeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
// Add My Challenges Filter and Improve Filters challenge -- different api endpoint
return UserChallengesService.getUserChallenges(listType === 'user-past' ? 'past' : 'active', params);
} else {
params.review = 'COMMUNITY,INTERNAL';
return Restangular.one('challenges').getList(listType, params);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/app/my-dashboard/head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<html lang="en" itemscope itemtype="http://schema.org/Article" ng-app="myDashboard" ng-controller="MyDashboardCtrl as vm">
<html lang="en" itemscope itemtype="http://schema.org/Article" ng-app="myDashboard" ng-controller="MyDashboardCtrl as db">
<head>
<title ng-bind="vm.title"></title>
<title ng-bind="db.title"></title>
18 changes: 9 additions & 9 deletions src/js/app/my-dashboard/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@@header

<div ng-show="vm.loggedIn && vm.user" class="content">
<div ng-show="db.loggedIn && db.user" class="content">
<style>
/* CSS to override bootstrap and existing css conflicts*/
body {
Expand Down Expand Up @@ -32,7 +32,7 @@
</style>
<div class="jumbotron my-dashboard-container member-profile-header">
<div class="container">
<div class="welcome-back" ng-include="vm.getTemplateURL('welcome-back.html')">
<div class="welcome-back" ng-include="db.getTemplateURL('welcome-back.html')">
</div>
</div>
</div>
Expand All @@ -41,21 +41,21 @@
<div class="clearfix visible-md-block visible-lg-block"></div>
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-push-4 col-md-9 col-md-push-3">
<!--<div class="my-dashboard-widget marketing-message" ng-include="vm.getTemplateURL('marketing-message.html')">
<!--<div class="my-dashboard-widget marketing-message" ng-include="db.getTemplateURL('marketing-message.html')">
</div>-->
<div class="my-dashboard-widget my-challenges" ng-include="vm.getTemplateURL('my-challenges.html')">
<div class="my-dashboard-widget my-challenges" ng-include="db.getTemplateURL('my-challenges.html')" ng-controller="MyChallengesCtrl as vm" ng-show="vm.renderWidget">
</div>
<div class="my-dashboard-widget srm-gadget" ng-include="vm.getTemplateURL('upcaming-srms.html')">
<div class="my-dashboard-widget srm-gadget" ng-include="db.getTemplateURL('upcaming-srms.html')">
</div>
</div>
<div class="col-xs-12 col-sm-4 col-sm-pull-8 col-md-3 col-md-pull-9">
<div class="my-dashboard-widget member-program" ng-include="vm.getTemplateURL('member-program.html')">
<div class="my-dashboard-widget member-program" ng-include="db.getTemplateURL('member-program.html')">
</div>
<div class="my-dashboard-widget helpful-links" ng-include="vm.getTemplateURL('helpful-links.html')">
<div class="my-dashboard-widget helpful-links" ng-include="db.getTemplateURL('helpful-links.html')">
</div>
<div class="my-dashboard-widget subscribe-updates" ng-include="vm.getTemplateURL('subscribe-updates.html')">
<div class="my-dashboard-widget subscribe-updates" ng-include="db.getTemplateURL('subscribe-updates.html')">
</div>
<div class="my-dashboard-widget blog-post" ng-include="vm.getTemplateURL('blog-feed.html')">
<div class="my-dashboard-widget blog-post" ng-include="db.getTemplateURL('blog-feed.html')">
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
vm.registerUser = registerUser;

// parent dashboard controller
var db = $scope.$parent.vm;
var db = $scope.$parent.db;

// activate controller
if (AuthService.isLoggedIn === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
vm.isCurrentPage = isCurrentPage;
vm.getCurrentPageClass = getCurrentPageClass;
vm.sort = sort;
vm.renderWidget = false;

// getChallenges controller
if (AuthService.isLoggedIn === true) {
Expand All @@ -71,19 +72,13 @@
};
// show loading icon
vm.loading = true;
// remove following if block when API supports paging
if (vm.pageIndex > 1) {
processChallengesResponse(vm.myChallenges);
vm.loading = false;
return;
}
// Fetch my active
return ChallengeService.getMyActiveChallenges(searchRequest)
.then(function(data) {
processChallengesResponse(data);
// stop loading icon
vm.loading = false;

vm.renderWidget = vm.myChallenges && vm.myChallenges.length > 0;
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
vm.statsToShow = 2;

// parent dashboard controller
var db = $scope.$parent.vm;
var db = $scope.$parent.db;

// activate controller
if (AuthService.isLoggedIn === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/my-dashboard/partials/my-challenges.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-controller="MyChallengesCtrl as vm" >
<div>
<div class="widget-content">
<div class="challenges-header clearfix">
<div class="pull-left"><strong>My Challenges</strong></div>
Expand Down