Trashing an empty wrapper

trashing an empty wrapper

From 17bc21abff05c7468b39a100d3017e0cddc1d598 Mon Sep 17 00:00:00 2001
From: Kris <kris.aubuchon@discourse.org>
Date: Tue, 20 Nov 2018 15:42:18 -0500
Subject: [PATCH] trashing an empty wrapper


diff --git a/app/assets/javascripts/discourse/templates/preferences/emails.hbs b/app/assets/javascripts/discourse/templates/preferences/emails.hbs
index 3ba41e9..b705f0a 100644
--- a/app/assets/javascripts/discourse/templates/preferences/emails.hbs
+++ b/app/assets/javascripts/discourse/templates/preferences/emails.hbs
@@ -1,9 +1,9 @@
 {{#unless siteSettings.disable_mailing_list_mode}}
-  <div class="warning-wrap">
-    {{#if model.user_option.mailing_list_mode}}
-      <div class="warning">{{i18n 'user.mailing_list_mode.warning'}}</div>
-    {{/if}}
-  </div>
+  {{~#if model.user_option.mailing_list_mode}}
+    <div class="warning-wrap">
+        <div class="warning">{{i18n 'user.mailing_list_mode.warning'}}</div>
+    </div>
+  {{/if}}
 {{/unless}}
 <div class="control-group pref-email-settings">
   <label class="control-label">{{i18n 'user.email_settings'}}</label>

GitHub

2 Likes