From 47cf0eb07d3834a4fa1ef9f07ed1478a2b86b664 Mon Sep 17 00:00:00 2001 From: Adrien Lemaire Date: Sun, 24 Nov 2013 10:49:33 +1100 Subject: [PATCH] add npc color, update leader background --- public/css/avatar.styl | 5 ++++- views/shared/header/avatar.jade | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/css/avatar.styl b/public/css/avatar.styl index 9a346da167..bb81bb6327 100644 --- a/public/css/avatar.styl +++ b/public/css/avatar.styl @@ -90,4 +90,7 @@ future re: pets and whatnot, this is just temporary. margin: 0 auto .character-sprites span, .pet - position: absolute \ No newline at end of file + position: absolute + +.herobox.isLeader + background: $better diff --git a/views/shared/header/avatar.jade b/views/shared/header/avatar.jade index f064c1a2d3..ce4bd5cfd8 100644 --- a/views/shared/header/avatar.jade +++ b/views/shared/header/avatar.jade @@ -3,7 +3,7 @@ Removing it will remove the user's name, but will allow more room for mounts & helms. IMO this is the lesser of two evils, revisit //-figure.herobox(ng-click='clickMember(profile._id)', data-name='{{profile.profile.name}}', ng-class='{isUser: profile.id==user.id, hasPet: profile.items.currentPet}', data-level='{{profile.stats.lvl}}', data-uid='{{profile.id}}', rel='popover', data-placement='bottom', data-trigger='hover', data-html='true', data-content="
Level: {{profile.stats.lvl}}
GP: {{profile.stats.gp | number:0}}
{{count(profile.items.pets)}} / 90 Pets Found
") -figure.herobox(ng-click='clickMember(profile._id)', data-name='{{profile.profile.name}}', ng-class='{isUser: user._id==profile._id && !(user.items.currentMount && user.items.currentPet), hasPet: profile.items.currentPet && profile.items.currentMount}') +figure.herobox(ng-click='clickMember(profile._id)', data-name='{{profile.profile.name}}', ng-class='{isUser: user._id==profile._id && !(user.items.currentMount && user.items.currentPet), hasPet: profile.items.currentPet && profile.items.currentMount, isLeader: party.leader==profile._id}') .character-sprites // Mount Body span(ng-if='profile.items.currentMount', class='Mount_Body_{{profile.items.currentMount}}') @@ -27,5 +27,5 @@ figure.herobox(ng-click='clickMember(profile._id)', data-name='{{profile.profile // Pet // FIXME handle @minimal, this might have to be a directive span.current-pet(class='Pet-{{profile.items.currentPet}}', ng-show='profile.items.currentPet && !minimal') - .avatar-level(class='label label-contributor-{{profile.contributor.level}}' ng-class='{"badge badge-info": {{party.leader==profile._id}}}') + .avatar-level(ng-class='{label:profile, "label-contributor-{{profile.contributor.level}}": profile.contributor, "label-npc": profile.backer.npc}') | Lvl {{profile.stats.lvl}}