remove deleted_alias page
This commit is contained in:
parent
526df4ea09
commit
0bfd6b3ec7
|
@ -17,7 +17,6 @@ from .views import (
|
||||||
lifetime_licence,
|
lifetime_licence,
|
||||||
directory,
|
directory,
|
||||||
mailbox,
|
mailbox,
|
||||||
deleted_alias,
|
|
||||||
mailbox_detail,
|
mailbox_detail,
|
||||||
refused_email,
|
refused_email,
|
||||||
referral,
|
referral,
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
{% extends 'default.html' %}
|
|
||||||
|
|
||||||
{% block title %}
|
|
||||||
Deleted Aliases
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block default_content %}
|
|
||||||
<div style="max-width: 60em; margin: auto">
|
|
||||||
<h1 class="h3 mb-5"> Deleted Aliases </h1>
|
|
||||||
|
|
||||||
{% if deleted_aliases|length == 0 %}
|
|
||||||
<div class="my-4 p-4 card">
|
|
||||||
You haven't deleted any alias.
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% for deleted_alias in deleted_aliases %}
|
|
||||||
<div class="my-4 p-4 card border-light">
|
|
||||||
{{ deleted_alias.email }}
|
|
||||||
<div class="small-text">
|
|
||||||
Deleted {{ deleted_alias.created_at | dt }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -237,22 +237,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="card-title">Deleted Aliases</div>
|
|
||||||
<div class="mb-3" style="">
|
|
||||||
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. <br>
|
|
||||||
This check is necessary to avoid someone else accidentally taking this alias.
|
|
||||||
Otherwise the other person might receive inadvertently information that belong to you. <br>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="{{ url_for('dashboard.deleted_alias_route') }}" class="btn btn-outline-primary">
|
|
||||||
See deleted aliases
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="card-title">Quarantine</div>
|
<div class="card-title">Quarantine</div>
|
||||||
|
|
|
@ -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())
|
|
Loading…
Reference in a new issue