From 582dd1ed2eb68616f53c1ad7d8621dffb8a67ec6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 14 Jul 2017 13:09:35 -0400 Subject: [PATCH] testing new footer with new_post tpl --- public/images/emails/unreadpost.png | Bin 0 -> 3733 bytes src/topics/follow.js | 1 + src/views/emails/notif_post.tpl | 61 +++++++++++++++++++++++---- src/views/emails/partials/footer.tpl | 4 +- 4 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 public/images/emails/unreadpost.png diff --git a/public/images/emails/unreadpost.png b/public/images/emails/unreadpost.png new file mode 100644 index 0000000000000000000000000000000000000000..8228478618dada1fb80ebfce8c2f333796f62677 GIT binary patch literal 3733 zcmcgvhgTEn77slJNPH-guCI+MgBZ#6v5>&dv8+PA2=lumc=ggTq-~HYDyZ1NWIp3XIRu@dAVG1w^ z1R`yA{){yQB1GP~q2l05pJu26_>iZab)a1i^rD5j275w`Jp$c4mCXWNy*;fxT|L5r zdOQsv5V)S%8Dkq@e1T)(@5Gju5X|W72gTpsLx2X#nTN^hra#k4Svc=p4T~r`mF+TY zsd~LTzRDGIf>U5_cCd&CwPhOn<~C+OwGq7qQ@LRpLXUy&xRle>rWp2mLF)C|BZtLi~HxU*q2{wM2i;s=~LrboS&*p{CfLQL^?@E6wAO; zC2E*TV*!_E_AB*La%%-q>@Uhd;c_AFE@$y2B|&bz^~$S`&{A81fG|%8J;t2K{ceashZF1{-Of7E)`-(lGXV*#toybNL0&2nQFXT zg#k_PI3cv)7Pj`urJufdWxzFV@OF8kw)RHw%xwY3+f#-`b>+g7jxte6QXKtip@rF8r@wZRE^TWEOc`T-nt0I+I0{P+DW`w z@yVi&0woZ&i!*etm?U03>(Ygdr@t2Gxk>!jRV>Bv`X8(qgjER^CTrgAks3D^WC3&a z!EKfrZgUjItW>*&ZyXLiuE$lE6<<^a%+zV5Be({w9iTNZN0D5YZZzuzbZ6w+ErjAo zZ(?)r`k(NTXty92;&!L(r`}0Hvv%UH`hnO-qeO?B#yBW>e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7Pl0nhvHY+BG zl3=t*dup4ueylrx6kH9IkZ8BoDL45RNQ1j812|nO?(?9Dys$n`q+Sl)PBLC>V!-<( z1Y-$fVpZH?Va4!YBz7tnrVER_bp;2@&t%35*Y0!QF!++%R@?@umvazg#nw0zlRxVJ zt^yp^rz(Xb+u-g{a`QtuDL_plBI(Z2o(gslFMP5!R>no}={ocn)X9L0p4-|KLCOI|XsMwRNZsl0P0jJ;xPN-XS(Sd*Mt4!6p7bJJ7Rw literal 0 HcmV?d00001 diff --git a/src/topics/follow.js b/src/topics/follow.js index 62ee424eea..5d0de0e5a5 100644 --- a/src/topics/follow.js +++ b/src/topics/follow.js @@ -265,6 +265,7 @@ module.exports = function (Topics) { topicSlug: postData.topic.slug, postCount: postData.topic.postcount, base_url: nconf.get('url'), + showUnsubscribe: true, }, next); } else { winston.debug('[topics.notifyFollowers] uid ' + toUid + ' does not have post notifications enabled, skipping.'); diff --git a/src/views/emails/notif_post.tpl b/src/views/emails/notif_post.tpl index 4fd360575f..d85ed96606 100644 --- a/src/views/emails/notif_post.tpl +++ b/src/views/emails/notif_post.tpl @@ -1,13 +1,56 @@ -

[[email:greeting_with_name, {username}]],

+ -

{intro}:

-
{postBody}
+ + -[[email:notif.post.cta]] + + + + + - + + + + + + +
+ +
+ + + + + + + + + + + + + +
+

{intro}

+
+

{postBody}

+
+ + + + + +
+ +     [[email:notif.post.cta]]     + +
+ +
+

{site_title}

+
+
+ -
-

- [[email:notif.post.unsub.info]] [[email:unsub.cta]]. -

+ diff --git a/src/views/emails/partials/footer.tpl b/src/views/emails/partials/footer.tpl index af6b7d4369..236887425c 100644 --- a/src/views/emails/partials/footer.tpl +++ b/src/views/emails/partials/footer.tpl @@ -3,7 +3,9 @@

-   + + [[email:notif.post.unsub.info]] [[email:unsub.cta]]. +