only show ZENDESK button if ZENDESK_ENABLED
This commit is contained in:
parent
728d935d65
commit
4d23134372
|
@ -69,6 +69,7 @@ from app.config import (
|
||||||
COINBASE_WEBHOOK_SECRET,
|
COINBASE_WEBHOOK_SECRET,
|
||||||
PAGE_LIMIT,
|
PAGE_LIMIT,
|
||||||
PADDLE_COUPON_ID,
|
PADDLE_COUPON_ID,
|
||||||
|
ZENDESK_ENABLED,
|
||||||
)
|
)
|
||||||
from app.dashboard.base import dashboard_bp
|
from app.dashboard.base import dashboard_bp
|
||||||
from app.db import Session
|
from app.db import Session
|
||||||
|
@ -400,6 +401,7 @@ def jinja2_filter(app):
|
||||||
PGP_SIGNER=PGP_SIGNER,
|
PGP_SIGNER=PGP_SIGNER,
|
||||||
CANONICAL_URL=f"{URL}{request.path}",
|
CANONICAL_URL=f"{URL}{request.path}",
|
||||||
PAGE_LIMIT=PAGE_LIMIT,
|
PAGE_LIMIT=PAGE_LIMIT,
|
||||||
|
ZENDESK_ENABLED=ZENDESK_ENABLED,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,26 +71,36 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dropdown nav-item d-flex align-items-center">
|
{% if ZENDESK_ENABLED %}
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
|
<div class="dropdown nav-item d-flex align-items-center">
|
||||||
<div class="dropdown-menu dropdown-menu-left dropdown-menu-arrow">
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
|
||||||
<div class="dropdown-item">
|
<div class="dropdown-menu dropdown-menu-left dropdown-menu-arrow">
|
||||||
<a href="https://simplelogin.io/docs/" target="_blank">
|
<div class="dropdown-item">
|
||||||
Docs
|
<a href="https://simplelogin.io/docs/" target="_blank">
|
||||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
Docs
|
||||||
</a>
|
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||||
</div>
|
</a>
|
||||||
<div class="dropdown-item">
|
</div>
|
||||||
<a href="https://github.com/simple-login/app/discussions" target="_blank">
|
<div class="dropdown-item">
|
||||||
Forum
|
<a href="https://github.com/simple-login/app/discussions" target="_blank">
|
||||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
Forum
|
||||||
</a>
|
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||||
</div>
|
</a>
|
||||||
<div class="dropdown-item">
|
</div>
|
||||||
<a href="/dashboard/support">Support</a>
|
<div class="dropdown-item">
|
||||||
|
<a href="/dashboard/support">Support</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% else %}
|
||||||
|
<div class="nav-item">
|
||||||
|
<a href="https://simplelogin.io/docs/" target="_blank">
|
||||||
|
Docs
|
||||||
|
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if current_user.should_show_upgrade_button() %}
|
{% if current_user.should_show_upgrade_button() %}
|
||||||
<div class="nav-item">
|
<div class="nav-item">
|
||||||
|
|
Loading…
Reference in a new issue