reformat info page info_html field

This commit is contained in:
Cyberes 2023-09-13 20:40:55 -06:00
parent 15a0390875
commit 035c17c48b
2 changed files with 4 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def home():
analytics_tracking_code = '' analytics_tracking_code = ''
if config['info_html']: if config['info_html']:
info_html = '<br>\n' + config['info_html'] info_html = config['info_html']
else: else:
info_html = '' info_html = ''

View File

@ -79,7 +79,10 @@
<p><strong>Client API URL:</strong> {{ client_api }}</p> <p><strong>Client API URL:</strong> {{ client_api }}</p>
<p><strong>Streaming API URL:</strong> {{ ws_client_api }}</p> <p><strong>Streaming API URL:</strong> {{ ws_client_api }}</p>
<p><strong>OpenAI-Compatible API URL:</strong> {{ openai_client_api }}</p> <p><strong>OpenAI-Compatible API URL:</strong> {{ openai_client_api }}</p>
{% if info_html|length > 1 %}
<br>
{{ info_html|safe }} {{ info_html|safe }}
{% endif %}
</div> </div>
<br> <br>