Merge pull request #813 from DL6ER/tweak/hide_api

Hide API-related extra buttons if --hide-api is specified
This commit is contained in:
Piero Toffanin 2025-06-15 12:45:04 +02:00 committed by GitHub
commit 26a64b46a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,9 @@
</a> </a>
<ul id="nav" class="right hide-on-med-and-down top-nav position-relative"> <ul id="nav" class="right hide-on-med-and-down top-nav position-relative">
{% set menulinks %} {% set menulinks %}
{% if not hide_api %}
<li><a href="{{ swagger_url }}">{{ _h("API Docs") }}</a></li> <li><a href="{{ swagger_url }}">{{ _h("API Docs") }}</a></li>
{% endif %}
{% if get_api_key_link %} {% if get_api_key_link %}
<li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li> <li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li>
{% endif %} {% endif %}