From aeed62e95b2d97902aff1643824a31ddb200e823 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 29 Feb 2020 00:03:35 +0700 Subject: [PATCH] All users use full-mailbox - remove can_use_multiple_mailbox col - remove full_mailbox col --- .../templates/dashboard/custom_alias.html | 28 +++++++---------- app/dashboard/templates/dashboard/index.html | 2 +- .../templates/dashboard/mailbox.html | 12 +++---- app/dashboard/views/custom_alias.py | 7 ++--- app/dashboard/views/index.py | 9 +----- app/dashboard/views/mailbox.py | 4 --- app/models.py | 18 +---------- .../versions/2020_022900_7eef64ffb398_.py | 31 +++++++++++++++++++ server.py | 2 -- shell.py | 20 ------------ templates/menu.html | 16 +++++----- 11 files changed, 61 insertions(+), 88 deletions(-) create mode 100644 migrations/versions/2020_022900_7eef64ffb398_.py diff --git a/app/dashboard/templates/dashboard/custom_alias.html b/app/dashboard/templates/dashboard/custom_alias.html index 55e95813..c294b952 100644 --- a/app/dashboard/templates/dashboard/custom_alias.html +++ b/app/dashboard/templates/dashboard/custom_alias.html @@ -54,24 +54,20 @@ - {% if mailboxes|length > 1 or current_user.full_mailbox %} -
-
- -
- The mailbox that owns this alias. -
+
+
+ +
+ The mailbox that owns this alias.
- {% else %} - - {% endif %} +
diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 54f23bad..c0fc29fa 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -151,7 +151,7 @@
- {% if current_user.full_mailbox and mailboxes|length > 1 %} + {% if mailboxes|length > 1 %}
Current mailbox
diff --git a/app/dashboard/templates/dashboard/mailbox.html b/app/dashboard/templates/dashboard/mailbox.html index ee83e1c1..639fd95a 100644 --- a/app/dashboard/templates/dashboard/mailbox.html +++ b/app/dashboard/templates/dashboard/mailbox.html @@ -22,10 +22,8 @@ - all emails sent to this alias will be forwarded to this mailbox
- from this mailbox, you can reply/send emails from the alias.

- {% if current_user.full_mailbox %} - When you signed up, a mailbox is automatically created with your email {{ current_user.email }} -

- {% endif %} + When you signed up, a mailbox is automatically created with your email {{ current_user.email }} +

The mailbox doesn't have to be your email: it can be your friend's email if you want to create aliases for your buddy. @@ -61,7 +59,7 @@