Prettify unsubscribe page
This commit is contained in:
parent
af8ac99248
commit
332b4559f3
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
{% block default_content %}
|
{% block default_content %}
|
||||||
|
|
||||||
<div class="col-md-8 offset-md-2 text-center">
|
<div class="col-md-6 offset-md-3 text-center bg-white p-3 mt-5">
|
||||||
<h1 class="h3">
|
<h1 class="h3">
|
||||||
Block alias
|
Block alias
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -31,6 +31,6 @@ def unsubscribe(gen_email_id):
|
||||||
flash(f"Alias {gen_email.email} has been blocked", "success")
|
flash(f"Alias {gen_email.email} has been blocked", "success")
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
return redirect(url_for("dashboard.index"))
|
return redirect(url_for("dashboard.index", highlight_gen_email_id=gen_email.id))
|
||||||
else: # ask user confirmation
|
else: # ask user confirmation
|
||||||
return render_template("dashboard/unsubscribe.html", alias=gen_email.email)
|
return render_template("dashboard/unsubscribe.html", alias=gen_email.email)
|
||||||
|
|
Loading…
Reference in a new issue