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

fixed appirio-tech/topcoder-app/issues/1040 refactored details page b… #480

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions src/js/app/challenge-details/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
]);
$locationProvider.html5Mode(true);
}])
.config(function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|javascript):/);
})
.config(DataPreProcessing);

DataPreProcessing.$inject = ['$httpProvider', 'RestangularProvider', 'API_URL'];
Expand Down
27 changes: 4 additions & 23 deletions src/js/app/challenge-details/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,10 @@

<div class="leftColumn">
<div ng-if="!CD.isDesign">
<div ng-if="CD.showAppealsButtons">
<a class="btn btnAction" target="_blank" ng-href="//{{CD.reviewAppURL}}/actions/ViewProjectDetails?pid={{CD.challenge.challengeId}}">
<span>1</span>
<strong>View Scorecard</strong>
</a>
<a class="btn btnAction unregister" target="_blank" ng-href="//{{CD.reviewAppURL}}/actions/EarlyAppeals?pid={{CD.challenge.challengeId}}">
<span>2</span>
<strong>Complete Appeals</strong>
</a>
</div>
<div ng-if="!CD.showAppealsButtons">
<a ng-click="CD.challenge.allowToUnregister?CD.unregisterFromChallenge():CD.registerToChallenge()" ng-class="{disabled:!CD.challenge.allowToUnregister && (CD.challenge.registrationDisabled || !CD.callComplete), disabledNOT:!CD.challenge.registrationDisabled, unregister: CD.challenge.allowToUnregister}" class="btn btnAction challengeRegisterBtn" href="javascript:;">
<span>1</span>
<strong ng-hide="CD.isRegistered">
Register For This Challenge
</strong>
<strong ng-show="CD.isRegistered">
Unregister From This Challenge
</strong>
</a>
<a ng-class="{disabled:CD.challenge.submissionDisabled || !CD.callComplete, disabledNOT:!CD.challenge.submissionDisabled}" class="btn btnAction" target="_blank"
ng-href="/challenge-details/{{CD.challenge.challengeId}}/submit/?type=develop">
<span>2</span><strong>Submit Your Entries</strong>
<div ng-repeat="button in CD.buttons track by $index">
<a class="btn btnAction {{button.classes}}" target="_blank" ng-href="{{button.href || 'javascript:void(0);'}}" ng-click="button.onClick()">
<span>{{$index + 1}}</span>
<strong>{{button.text}}</strong>
</a>
</div>
</div>
Expand Down
Loading