From bcef41ec649157e68b619ee78b249db12e86043e Mon Sep 17 00:00:00 2001 From: Caio Carrara Date: Tue, 22 Mar 2016 16:08:07 -0300 Subject: Issue #647: Refactor security labels stylesheet This change refactor the stylesheet of security labels. Now it's following the BEM naming conventions. Also, as the code is pretty coupled between css and js, it was necessary some changes on javascript code to keep the previous i18n key and rename the css classes. --- web-ui/app/js/mail_view/ui/mail_view.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index d1fba8c4..6f21b96c 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -146,7 +146,7 @@ define( return { cssClass: 'security-status__label--not-encrypted', label: 'not-encrypted' - } + }; } var statusClass = ['security-status__label--encrypted']; @@ -166,7 +166,7 @@ define( return { cssClass: statusClass.join(''), label: statusLabel.join(' ') - } + }; }; this.checkSigned = function(mail) { @@ -187,7 +187,7 @@ define( return statusNotSigned; } - var statusClass = ['security-status__label--signed'] + var statusClass = ['security-status__label--signed']; var statusLabel = ['signed']; if(_.any(mail.security_casing.imprints, function(imprint) { return imprint.state === 'from_revoked'; })) { @@ -208,7 +208,7 @@ define( return { cssClass: statusClass.join(''), label: statusLabel.join(' ') - } + }; }; this.isNotTrusted = function(mail){ -- cgit v1.2.3