diff --git a/cookbook/templates/system.html b/cookbook/templates/system.html index 8f7d83910..6fd5dfb5c 100644 --- a/cookbook/templates/system.html +++ b/cookbook/templates/system.html @@ -1,16 +1,26 @@ -{% extends "base.html" %} {% load static %} {% load i18n %} + + + + Tandoor + + + + -{% block title %}{% trans "Cookbook Setup" %}{% endblock %} + -{% block extra_head %} - {{ form.media }} -{% endblock %} + + + + +
-{% block content %} -

{% trans 'System' %}

+

{% trans 'System' %}

{% blocktrans %} Tandoor Recipes is an open source free software application. It can be found on GitHub. @@ -43,7 +53,7 @@ {% endblocktrans %} {% endif %} -

{% trans 'Media Serving' %} {% if gunicorn_media %} +

{% trans 'Media Serving' %} {% if gunicorn_media %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if gunicorn_media %} {% blocktrans %}Serving media files directly using gunicorn/python is not recommend! @@ -57,7 +67,7 @@

{% trans 'Secret Key' %} {% if secret_key %} + class="badge text-bg-{% if secret_key %}danger{% else %}success{% endif %}">{% if secret_key %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if secret_key %} {% blocktrans %} @@ -71,7 +81,7 @@ {% endif %}

{% trans 'Debug Mode' %} {% if debug %} + class="badge text-bg-{% if debug %}danger{% else %}success{% endif %}">{% if debug %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if debug %} {% blocktrans %} @@ -84,7 +94,7 @@ {% endif %}

{% trans 'Allowed Hosts' %} {% if '*' in allowed_hosts %} + class="badge text-bg-{% if '*' in allowed_hosts %}warning{% else %}success{% endif %}">{% if '*' in allowed_hosts %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

{% if debug %} {% blocktrans %} @@ -95,7 +105,7 @@ {% endif %}

{% trans 'Database' %} - + {% if postgres_status == 'warning' %} {% trans 'Info' %} {% elif postgres_status == 'danger' %} @@ -109,7 +119,7 @@

{% trans 'Migrations' %} {% if missing_migration %} + class="badge text-bg-{% if missing_migration %}danger{% else %}success{% endif %}">{% if missing_migration %} {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

@@ -132,7 +142,7 @@ {{ value.app }} - + {{ value.applied_migrations|length }} / {{ value.total }} @@ -153,7 +163,7 @@ {#

#} {# {% trans 'Orphaned Files' %}#} {##} - {# #} + {# #} {# {% if orphans|length == 0 %}{% trans 'Success' %}#} {# {% elif orphans|length <= 25 %}{% trans 'Warning' %}#} {# {% else %}{% trans 'Danger' %}#} @@ -176,32 +186,32 @@ {#{% endfor %}#} {# #} {% if api_space_stats %} -

API Stats

-
Space Stats
- - {% for r in api_space_stats %} - - {% for c in r %} - - {% endfor %} - - {% endfor %} -
- {{ c }} -
+

API Stats

+
Space Stats
+ + {% for r in api_space_stats %} + + {% for c in r %} + + {% endfor %} + + {% endfor %} +
+ {{ c }} +
-
Endpoint Stats
- - {% for r in api_stats %} - - {% for c in r %} - - {% endfor %} - - {% endfor %} -
- {{ c }} -
+
Endpoint Stats
+ + {% for r in api_stats %} + + {% for c in r %} + + {% endfor %} + + {% endfor %} +
+ {{ c }} +
{% endif %}

Debug