mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
change badge from master => royal
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
.label-champion
|
.label-champion
|
||||||
background-color: #125BA2
|
background-color: #125BA2
|
||||||
color: white
|
color: white
|
||||||
.label-master
|
.label-royal
|
||||||
background-color: #7313B4
|
background-color: #7313B4
|
||||||
color: white
|
color: white
|
||||||
|
|
||||||
|
|||||||
@@ -67,10 +67,10 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
|||||||
}
|
}
|
||||||
$scope.nameTagClasses = function(message){
|
$scope.nameTagClasses = function(message){
|
||||||
if (message.contributor) {
|
if (message.contributor) {
|
||||||
if (message.contributor.match(/npc/i) || message.contributor.match(/master/i)) {
|
if (message.contributor.match(/npc/i) || message.contributor.match(/royal/i)) {
|
||||||
return 'label-master'; // master
|
return 'label-royal';
|
||||||
} else if (message.contributor.match(/champion/i)) {
|
} else if (message.contributor.match(/champion/i)) {
|
||||||
return 'label-champion'; // champion
|
return 'label-champion';
|
||||||
} else if (message.contributor.match(/elite/i)) {
|
} else if (message.contributor.match(/elite/i)) {
|
||||||
return 'label-success'; //elite
|
return 'label-success'; //elite
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user