diff --git a/app/dashboard/__init__.py b/app/dashboard/__init__.py index 38632954..62452ac5 100644 --- a/app/dashboard/__init__.py +++ b/app/dashboard/__init__.py @@ -17,7 +17,6 @@ from .views import ( lifetime_licence, directory, mailbox, - deleted_alias, mailbox_detail, refused_email, referral, diff --git a/app/dashboard/templates/dashboard/deleted_alias.html b/app/dashboard/templates/dashboard/deleted_alias.html deleted file mode 100644 index feedd97d..00000000 --- a/app/dashboard/templates/dashboard/deleted_alias.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'default.html' %} - -{% block title %} - Deleted Aliases -{% endblock %} - -{% block head %} -{% endblock %} - -{% block default_content %} -
-

Deleted Aliases

- - {% if deleted_aliases|length == 0 %} -
- You haven't deleted any alias. -
- {% endif %} - - {% for deleted_alias in deleted_aliases %} -
- {{ deleted_alias.email }} -
- Deleted {{ deleted_alias.created_at | dt }} -
-
- {% endfor %} - - -
-{% endblock %} \ No newline at end of file diff --git a/app/dashboard/templates/dashboard/setting.html b/app/dashboard/templates/dashboard/setting.html index fc05d9c6..b62be20b 100644 --- a/app/dashboard/templates/dashboard/setting.html +++ b/app/dashboard/templates/dashboard/setting.html @@ -237,22 +237,6 @@ -
-
-
Deleted Aliases
-
- When an alias is deleted, all its activities are deleted and no emails can be sent to it. - The deleted alias is moved to another location and only used to check when new alias is created.
- This check is necessary to avoid someone else accidentally taking this alias. - Otherwise the other person might receive inadvertently information that belong to you.
-
- - - See deleted aliases - -
-
-
Quarantine
diff --git a/app/dashboard/views/deleted_alias.py b/app/dashboard/views/deleted_alias.py deleted file mode 100644 index 77237f05..00000000 --- a/app/dashboard/views/deleted_alias.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import render_template -from flask_login import login_required, current_user - -from app.dashboard.base import dashboard_bp -from app.models import DeletedAlias - - -@dashboard_bp.route("/deleted_alias", methods=["GET", "POST"]) -@login_required -def deleted_alias_route(): - deleted_aliases = DeletedAlias.query.filter_by(user_id=current_user.id).all() - - return render_template("dashboard/deleted_alias.html", **locals())