Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit faa638b

Browse files
author
Parth Shah
committedOct 21, 2015
header fixes
1 parent dd93efd commit faa638b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
 

‎app/my-dashboard/header-dashboard/header-dashboard.controller.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
'ProfileService',
1010
'userIdentity',
1111
'profile',
12-
'$log'
12+
'$log',
13+
'$filter'
1314
];
1415

15-
function HeaderDashboardController($stateParams, NotificationService, ProfileService, userIdentity, profile, $log) {
16+
function HeaderDashboardController($stateParams, NotificationService, ProfileService, userIdentity, profile, $log, $filter) {
1617
var vm = this;
1718
vm.profile = profile;
18-
19+
vm.handleColor = $filter('ratingColor')(_.get(profile, 'maxRating.rating', 0));
1920

2021
activate();
2122

‎app/my-dashboard/header-dashboard/header-dashboard.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ header
55
img.profile-circle(ng-if="vm.profile.photoURL", ng-src="{{vm.profile.photoURL}}")
66
img.profile-circle(ng-if="!vm.profile.photoURL", src="/images/ico-user-default.svg")
77
.user-stats(id="metrics", ng-hide="vm.loading")
8-
.handle(style="color:{{handleColor}};") {{vm.profile.handle}}
8+
.handle(style="color:{{vm.handleColor}};") {{vm.profile.handle}}
99
.money-earned(ng-hide="vm.hideMoney")
1010
p.number(ng-bind="vm.moneyEarned | currency:'$':0")
1111
p Earned

‎assets/css/my-dashboard/header-dashboard.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
margin-top: 30px;
99
@media only screen and (min-width: 900px) {
1010
padding: 30px 60px;
11+
margin-left: auto;
12+
margin-right: auto;
1113
}
1214

1315
header {

0 commit comments

Comments
 (0)
This repository has been archived.