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

Commit 2d9cd70

Browse files
committed
Profile and payments messages views added
1 parent c9958fd commit 2d9cd70

File tree

10 files changed

+61
-924
lines changed

10 files changed

+61
-924
lines changed

src/main/resources/public/app.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ moduleA.config(function ($routeProvider) {
3434
controller: 'AboutController'
3535
})
3636

37+
.when('/profile', {
38+
templateUrl: 'dashboard/profile.html'
39+
})
40+
41+
.when('/payment-accept', {
42+
templateUrl: 'dashboard/payment-accept.html'
43+
})
44+
45+
.when('/payment-error', {
46+
templateUrl: 'dashboard/payment-error.html'
47+
})
48+
3749
.otherwise({
3850
redirectTo: '/'
3951
});
@@ -301,7 +313,6 @@ app.controller('ProjectsController', function ($scope, $http) {
301313
);
302314
});
303315

304-
305316
app.controller('VersionController', function ($scope) {
306317
$scope.years = "2019";
307318
$scope.mm = "Michał Młodawski";
@@ -337,8 +348,6 @@ app.controller('dashboardGithub', function ($scope, $http, $cookies) {
337348
$scope.passCheck = response;
338349
$scope.avatar = response.data.avatar_url;
339350
$scope.name = response.data.name;
340-
$scope.urlHtml = response.data.html_url;
341-
342351
},
343352
function () {
344353
$scope.passCheck = false;

src/main/resources/public/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<span class="d-none d-md-inline-block">{{name}}</span>
8989
</a>
9090
<div class="dropdown-menu dropdown-menu-small">
91-
<a class="dropdown-item" href="{{urlHtml}}">
91+
<a class="dropdown-item" href="#!profile">
9292
<i class="material-icons">&#xE7FD;</i> Profile</a>
9393
<div class="dropdown-divider"></div>
9494
<a class="dropdown-item text-danger" ng-click="logout()">

src/main/resources/public/dashboard/dashboard-logs.html

Lines changed: 0 additions & 379 deletions
This file was deleted.

src/main/resources/public/dashboard/dashboard-payment-accept.html

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/main/resources/public/dashboard/dashboard-payment-error.html

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)