Skip to content

Commit

Permalink
A few more tweaks to dashboard template to make it cleaner and more c…
Browse files Browse the repository at this point in the history
…onsistent.
  • Loading branch information
Drew Hubl committed Jun 18, 2015
1 parent ad80001 commit 50d498a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions watchman/templates/watchman/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% load i18n %}

{% block content %}
<h2>{% trans 'System Status' %}{% if overall_status == 'OK' %} <small>{% trans 'All systems up and running!' %}</small>{% endif %}</h2>
<h2>{% trans 'System Status' %}{% if overall_status == 'OK' %} <small>{% trans 'All systems up and running!' %}</small>{% else %} <small>{% trans 'WARNING - Some systems down!' %}</small>{% endif %}</h2>

<table class="table table-bordered table-hover">
<thead>
Expand All @@ -17,7 +17,7 @@ <h2>{% trans 'System Status' %}{% if overall_status == 'OK' %} <small>{% trans '
{% for type in checks %}
{% for thing in type.statuses %}
<tr>
<td class="{% if type.overall_status == 'OK' %}bg-success{% endif %}">{{ type.type|title }}</td>
<td class="{% if type.overall_status == 'OK' %}bg-success{% else %}bg-danger{% endif %}">{{ type.type|title }}</td>
<td>{{ thing.name|title }}</td>

{% if thing.status == 'OK' %}
Expand Down Expand Up @@ -57,5 +57,5 @@ <h4><pre>{{ thing.error }}</pre></h4>
</tbody>
</table>

<span class="pull-right"><small>{% trans 'Click an error button to see the full traceback' %}</small></span>
{% if overall_status != 'OK' %}<span class="pull-right"><small>{% trans 'Click an error button to see the full traceback' %}</small></span>{% endif %}{# overall_status != 'OK' #}
{% endblock %}{# status_content #}

0 comments on commit 50d498a

Please sign in to comment.