Skip to content
Snippets Groups Projects
Commit 36b6d6ba authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Move import, add tooltip

parent e0d603a4
No related branches found
No related tags found
1 merge request!261Resolve "Implement django-health-check"
Pipeline #2690 passed
...@@ -424,7 +424,7 @@ if _settings.get("twilio.sid", None): ...@@ -424,7 +424,7 @@ if _settings.get("twilio.sid", None):
TWILIO_CALLER_ID = _settings.get("twilio.callerid") TWILIO_CALLER_ID = _settings.get("twilio.callerid")
if _settings.get("celery.enabled", False): if _settings.get("celery.enabled", False):
INSTALLED_APPS += ("django_celery_beat", "django_celery_results") INSTALLED_APPS += ("django_celery_beat", "django_celery_results", "health_check.contrib.celery")
CELERY_BROKER_URL = _settings.get("celery.broker", "redis://localhost") CELERY_BROKER_URL = _settings.get("celery.broker", "redis://localhost")
CELERY_RESULT_BACKEND = "django-db" CELERY_RESULT_BACKEND = "django-db"
CELERY_CACHE_BACKEND = "django-cache" CELERY_CACHE_BACKEND = "django-cache"
...@@ -654,7 +654,6 @@ elif HAYSTACK_BACKEND_SHORT == "whoosh": ...@@ -654,7 +654,6 @@ elif HAYSTACK_BACKEND_SHORT == "whoosh":
if _settings.get("celery.enabled", False) and _settings.get("search.celery", True): if _settings.get("celery.enabled", False) and _settings.get("search.celery", True):
INSTALLED_APPS.append("celery_haystack") INSTALLED_APPS.append("celery_haystack")
INSTALLED_APPS.append("health_check.contrib.celery")
HAYSTACK_SIGNAL_PROCESSOR = "celery_haystack.signals.CelerySignalProcessor" HAYSTACK_SIGNAL_PROCESSOR = "celery_haystack.signals.CelerySignalProcessor"
else: else:
HAYSTACK_SIGNAL_PROCESSOR = "haystack.signals.RealtimeSignalProcessor" HAYSTACK_SIGNAL_PROCESSOR = "haystack.signals.RealtimeSignalProcessor"
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
</div> </div>
</div> </div>
{# Health checks #}
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
<span class="card-title"> {% blocktrans %}System health checks{% endblocktrans %}</span> <span class="card-title"> {% blocktrans %}System health checks{% endblocktrans %}</span>
...@@ -80,11 +81,13 @@ ...@@ -80,11 +81,13 @@
{% for plugin in plugins %} {% for plugin in plugins %}
<tr> <tr>
<td> <td>
<a class="tooltipped" data-position="top" data-tooltip="{{ plugin.pretty_status }}">
{% if plugin.status %} {% if plugin.status %}
<i class="material-icons green-text" aria-hidden="true">check</i> <i class="material-icons green-text" aria-hidden="true">check</i>
{% else %} {% else %}
<i class="material-icons red-text" aria-hidden="true">warning</i> <i class="material-icons red-text" aria-hidden="true">warning</i>
{% endif %} {% endif %}
</a>
</td> </td>
<td>{{ plugin.identifier }}</td> <td>{{ plugin.identifier }}</td>
<td> <td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment