mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-07-09 03:04:26 -04:00
Merge pull request #813 from DL6ER/tweak/hide_api
Hide API-related extra buttons if --hide-api is specified
This commit is contained in:
commit
26a64b46a1
@ -66,7 +66,9 @@
|
||||
</a>
|
||||
<ul id="nav" class="right hide-on-med-and-down top-nav position-relative">
|
||||
{% set menulinks %}
|
||||
{% if not hide_api %}
|
||||
<li><a href="{{ swagger_url }}">{{ _h("API Docs") }}</a></li>
|
||||
{% endif %}
|
||||
{% if get_api_key_link %}
|
||||
<li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li>
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user