mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
remove deleted_alias page
This commit is contained in:
parent
526df4ea09
commit
0bfd6b3ec7
4 changed files with 0 additions and 61 deletions
|
@ -17,7 +17,6 @@ from .views import (
|
|||
lifetime_licence,
|
||||
directory,
|
||||
mailbox,
|
||||
deleted_alias,
|
||||
mailbox_detail,
|
||||
refused_email,
|
||||
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 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-body">
|
||||
<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