mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
Removed disabled page and redirected to the normal dashboard
This commit is contained in:
parent
f59c5499fb
commit
e844c9a392
@ -19,7 +19,8 @@ VALID_MIME_TYPES = ["text/plain", "message/rfc822"]
|
|||||||
@login_required
|
@login_required
|
||||||
def show_support_dialog():
|
def show_support_dialog():
|
||||||
if not ZENDESK_HOST:
|
if not ZENDESK_HOST:
|
||||||
return render_template("dashboard/support_disabled.html")
|
flash("Support form is not enabled", "warning")
|
||||||
|
return redirect(url_for("dashboard.index"))
|
||||||
return render_template("dashboard/support.html", ticket_email=current_user.email)
|
return render_template("dashboard/support.html", ticket_email=current_user.email)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
{% extends 'default.html' %}
|
|
||||||
|
|
||||||
{% set active_page = None %}
|
|
||||||
|
|
||||||
{% block title %}
|
|
||||||
Support
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
<style>
|
|
||||||
.card-title {
|
|
||||||
font-size: 22px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block default_content %}
|
|
||||||
|
|
||||||
<div class="col pb-3">
|
|
||||||
<!-- Current plan -->
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="card-title mb-3">Support form is disabled. Please configure Zendesk integration.</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user