mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
added Postgres version to system page.
Added warnings for out of date Postgres versions
This commit is contained in:
@@ -83,17 +83,18 @@
|
||||
{% trans 'Everything is fine!' %}
|
||||
{% endif %}
|
||||
|
||||
<h4 class="mt-3">{% trans 'Database' %} <span
|
||||
class="badge badge-{% if postgres %}success{% else %}warning{% endif %}">{% if postgres %}
|
||||
{% trans 'Info' %}{% else %}{% trans 'Ok' %}{% endif %}</span></h4>
|
||||
{% if postgres %}
|
||||
{% trans 'Everything is fine!' %}
|
||||
{% else %}
|
||||
{% blocktrans %}
|
||||
This application is not running with a Postgres database backend. This is ok but not recommended as some
|
||||
features only work with postgres databases.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
<h4 class="mt-3">{% trans 'Database' %}
|
||||
<span class="badge badge-{{postgres_status}}">
|
||||
{% if postgres_status == 'warning' %}
|
||||
{% trans 'Info' %}
|
||||
{% elif postgres_status == 'danger'%}
|
||||
{% trans 'Warning' %}
|
||||
{% else %}
|
||||
{% trans 'Ok' %}
|
||||
{% endif %}
|
||||
</span>
|
||||
</h4>
|
||||
{{postgres_message}}
|
||||
|
||||
<h4 class="mt-3">
|
||||
{% trans 'Orphaned Files' %}
|
||||
@@ -125,6 +126,7 @@
|
||||
<textarea class="form-control" rows="20">
|
||||
Gunicorn Media: {{ gunicorn_media }}
|
||||
Sqlite: {% if postgres %} {% trans 'False' %} {% else %} {% trans 'True' %} {% endif %}
|
||||
{% if postgres %}PostgreSQL: {{postgres_version}} {% endif %}
|
||||
Debug: {{ debug }}
|
||||
|
||||
{% for key,value in request.META.items %}{% if key in 'SERVER_PORT,REMOTE_HOST,REMOTE_ADDR,SERVER_PROTOCOL' %}{{ key }}:{{ value }}
|
||||
|
||||
Reference in New Issue
Block a user