From 79f4b38e4cf666934f01c14acd21b7ba3890e95d Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 2 Sep 2017 12:24:10 +0530 Subject: [PATCH] Refactored user activation email --- .../datacenterlight/img/dcl-email-bg.jpg | Bin 0 -> 1941 bytes .../datacenterlight/emails/base_email.html | 178 ++++++++++++++++++ .../datacenterlight/emails/base_email.txt | 9 + .../emails/user_activation.html | 142 ++------------ 4 files changed, 199 insertions(+), 130 deletions(-) create mode 100644 datacenterlight/static/datacenterlight/img/dcl-email-bg.jpg create mode 100644 datacenterlight/templates/datacenterlight/emails/base_email.html create mode 100644 datacenterlight/templates/datacenterlight/emails/base_email.txt diff --git a/datacenterlight/static/datacenterlight/img/dcl-email-bg.jpg b/datacenterlight/static/datacenterlight/img/dcl-email-bg.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5a62f3e7c568ae366c5154f6e8e8a0d45f6dc298 GIT binary patch literal 1941 zcmd^8Nl@En6#i{_W0|C;kdT~Ikp*aFEw(I66PE!S8am^Yumswf9JKrf6>K?@0K+YT zZd^K9x}F-6CTY{j3`x3$L$lHCmZdF8Pb6KLOq-=^F77Xbfy_`&z4eXsFK_+c``^n= z=Vm}5 zDV8OX25AnZEh$T;&8mWjI5ZVQ%UGJ8#%+(1toK_{0wJACA(cra791~ItyId+E3a)@ zt#A>>vf5_*PzF-1(A4`41tRsTf-$Py%7JV}ghqVI(9okueQ{msPrPc& zOscdT6p|7t&`F*Qg?NUHM4&=SNsdV>JTHgkNWsr?_B`Dn2=#oU5DteKrZLpOHpLq` zmW?yPdY0wm1>5GdX-R1X7Gi5C_PlL;MO!guK*`dLc3tl)bU{mxZs}%^p21_W{Hx>D z2}#k?HnYZlsJXo3(9i~;+GOY{JYQ*1TLuNo2O&oXd6EyqAgX{8A|q;0C84bHYEn^o zfkPFTvsaf?aIRAk2W65e01_igkmY#^lB&u@NQU8gQkFTIlo*AByuz?DEfExgNZHM^ zq?rmV)S>oqVKmTXVYpx#O_YH~C-)0jl^+P8o<$?-$bAb&0p_#`t(Xf#zZ*m3cDr2m z=XHA!xxHSWugK@~mXws1+CQRI3*^Y_yNkWv;?P6W#7 za(cWNTAZfCiTPc?{YV*8zuoh&MC{sK&h9Cb&kvy}{UXXJahXwr~8T zVxH&XoA)0&6<*t}S{E+g@NF6?Dz02NdZ4lC@aY{_I;z*-y?O8A)$e|T{m;Gf_WM&` zegAuM;Q3dNeDLYlKm5Tz(b+xt!fQuA{Op?_|BP(y>dC(N`mv8bpZ@8u8lm}VZRn*p z-ud{8Yd`;8D?a(mv%_O=zI*1&>$CS!;!cDT)!prJ`7kVn^6_IX8?k#kLhRYKdoO!% z;&%DDOEXms6|J&yC%7RL+p}h0+s1L_@rf}o>&8pSG-#v8d zLUqlRoA*W!96tRZ$V`oMx`aQL?r5#t7Vdp^Z+CRJrtrGwM literal 0 HcmV?d00001 diff --git a/datacenterlight/templates/datacenterlight/emails/base_email.html b/datacenterlight/templates/datacenterlight/emails/base_email.html new file mode 100644 index 00000000..ae279731 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/base_email.html @@ -0,0 +1,178 @@ +{% load static from staticfiles %} +{% load i18n %} + + + + + + + {{dcl_text}} + + + + + + + + + + + + + +
+
+ + + + +
+ +
+ + + + + +
+ logo + +
+
+ +
+
+
+
+ + + + + + + + + + +
+ {% block email_head %} + {% endblock %} +
+

+ {% block email_body %} + {% endblock %} +

  +
+
+
+
+ + + + +
{% trans 'Your' %} {{dcl_text}} {% + trans 'team' %}
+
+
+
+ + + diff --git a/datacenterlight/templates/datacenterlight/emails/base_email.txt b/datacenterlight/templates/datacenterlight/emails/base_email.txt new file mode 100644 index 00000000..f0abda8f --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/base_email.txt @@ -0,0 +1,9 @@ +{% load static from staticfiles %} +{% load i18n %} +{% block email_head %} +{% endblock %} + +{% block email_body %} +{% endblock %} + +{% trans 'Your' %} {{dcl_text}} {% trans 'team' %} diff --git a/datacenterlight/templates/datacenterlight/emails/user_activation.html b/datacenterlight/templates/datacenterlight/emails/user_activation.html index 4b8a7d2b..1f0df691 100644 --- a/datacenterlight/templates/datacenterlight/emails/user_activation.html +++ b/datacenterlight/templates/datacenterlight/emails/user_activation.html @@ -1,132 +1,14 @@ +{% extends "datacenterlight/emails/base_email.html" %} {% load static from staticfiles %} {% load i18n %} - - - - - - -{{dcl_text}} - - - - - - - - - - - - - -
-
- - -
- -
- - - -
- logo - -
-
- -
-
-
-
- - - - - - - - - - -
- {{dcl_text}} {% trans 'account activation' %} -
-

- {% blocktrans %} - You can activate your {{dcl_text}} account by clicking here.

- You can also copy and paste the following link into the address bar of your browser and follow the link in order to activate your datacenterlight account.
- {{base_url}}{{activation_link}} - {% endblocktrans %} -

 
-
-
-
- - -
{% trans 'Your' %} {{dcl_text}} {% trans 'team' %}
-
-
-
- - - +{% block email_head %} + {{dcl_text}} {% trans 'account activation' %} +{% endblock %} +{% block email_body %} +{% blocktrans %} +You can activate your Data Center Light account by clicking here.
+You can also copy and paste the following link into the address bar of your browser
+to activate your Data Center Light account.
+{{base_url}}{{activation_link}} +{% endblocktrans %} +{% endblock %}