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