style support tickets from premium users via a class

pull/1/head
ansuz 5 years ago
parent 9e947e4fd6
commit 36e790dee6

@ -47,5 +47,8 @@
color: @colortheme_logo-2;
}
}
.cp-support-frompremium {
border: 2px solid red;
}
}

@ -188,6 +188,7 @@ define([
var senderKey = content.sender && content.sender.edPublic;
var fromMe = senderKey === privateData.edPublic;
var fromAdmin = ctx.adminKeys.indexOf(senderKey) !== -1;
var fromPremium = Boolean(privateData.plan);
var userData = h('div.cp-support-showdata', [
Messages.support_showData,
@ -199,8 +200,10 @@ define([
ev.stopPropagation();
});
var adminClass = (fromAdmin? '.cp-support-fromadmin': '');
var premiumClass = (fromPremium? '.cp-support-frompremium': '');
var name = Util.fixHTML(content.sender.name) || Messages.anonymous;
return h('div.cp-support-list-message' + (fromAdmin? '.cp-support-fromadmin': ''), {
return h('div.cp-support-list-message' + adminClass + premiumClass, {
'data-hash': hash
}, [
h('div.cp-support-message-from' + (fromMe ? '.cp-support-fromme' : ''), [

Loading…
Cancel
Save