From d43855adda01e4fe545c256f6c13e0fdf1beedbe Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 9 Jun 2017 15:36:14 -0500 Subject: [PATCH] fixed #3350, #3328, #3316, #3339 --- .../templates/datacenterlight/index.html | 16 ++++++++-------- .../templates/datacenterlight/pricing.html | 12 ++++++------ datacenterlight/views.py | 8 ++++++-- hosting/templates/hosting/reset_password.html | 10 ++++++++++ hosting/views.py | 2 +- utils/mailer.py | 5 ++++- utils/views.py | 2 +- 7 files changed, 36 insertions(+), 19 deletions(-) diff --git a/datacenterlight/templates/datacenterlight/index.html b/datacenterlight/templates/datacenterlight/index.html index 93fffa20..ccc47d42 100755 --- a/datacenterlight/templates/datacenterlight/index.html +++ b/datacenterlight/templates/datacenterlight/index.html @@ -294,7 +294,7 @@ -
+ +
@@ -365,20 +365,20 @@
  • - {% trans "What is it" %}
  • + {% trans "What is it" %}
  • - {% trans "Scale out" %}
  • + {% trans "Scale out" %}
  • - {% trans "Reliable and light" %}
  • + {% trans "Reliable and light" %}
  • - {% trans "Pricing" %} + {% trans "Pricing" %}
  • - {% trans "Contact" %} + {% trans "Contact" %}
  • diff --git a/datacenterlight/templates/datacenterlight/pricing.html b/datacenterlight/templates/datacenterlight/pricing.html index 9b217d10..54c7f950 100644 --- a/datacenterlight/templates/datacenterlight/pricing.html +++ b/datacenterlight/templates/datacenterlight/pricing.html @@ -195,24 +195,24 @@
    diff --git a/datacenterlight/views.py b/datacenterlight/views.py index d7b6a3e5..3c8741eb 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -158,6 +158,7 @@ class BetaAccessView(FormView): email_data = { 'subject': 'DatacenterLight Beta Access Request', 'to': form.cleaned_data.get('email'), + 'from': '(datacenterlight) DatacenterLight Support support@datacenterlight.ch', 'context': context, 'template_name': 'request_access_confirmation', 'template_path': 'datacenterlight/emails/' @@ -171,7 +172,8 @@ class BetaAccessView(FormView): email_data = { 'subject': 'DatacenterLight Beta Access Request', - 'to': 'info@ungleich.ch', + 'to': 'support@datacenterlight.ch', + 'from': '(datacenterlight) DatacenterLight Support support@datacenterlight.ch', 'context': context, 'template_name': 'request_access_notification', 'template_path': 'datacenterlight/emails/' @@ -261,6 +263,7 @@ class IndexView(CreateView): email_data = { 'subject': 'DatacenterLight Beta Access Request', 'to': form.cleaned_data.get('email'), + 'from': '(datacenterlight) DatacenterLight Support support@datacenterlight.ch', 'context': context, 'template_name': 'request_access_confirmation', 'template_path': 'datacenterlight/emails/' @@ -274,7 +277,8 @@ class IndexView(CreateView): email_data = { 'subject': 'DatacenterLight Beta Access Request', - 'to': 'info@ungleich.ch', + 'to': 'support@datacenterlight.ch', + 'from': '(datacenterlight) DatacenterLight Support support@datacenterlight.ch', 'context': context, 'template_name': 'request_access_notification', 'template_path': 'datacenterlight/emails/' diff --git a/hosting/templates/hosting/reset_password.html b/hosting/templates/hosting/reset_password.html index 1590a5bd..33aad944 100644 --- a/hosting/templates/hosting/reset_password.html +++ b/hosting/templates/hosting/reset_password.html @@ -10,6 +10,16 @@

    {% trans "Your VM hosted in Switzerland"%}

    + + {% if messages %} +
      + {% for message in messages %} +
    • {{ message }}
    • + {% endfor %} +
    + {% endif %} + +