Leveled up my english five minutes ago.

This commit is contained in:
A. Svensson 2015-03-16 17:10:36 +01:00
parent 933957bef6
commit bc2853f547
2 changed files with 6 additions and 6 deletions

View File

@ -20,13 +20,13 @@
{% with delta_hours=server.last_updated|hours_since_now %}
{% if delta_hours > 24 %}
<p id="server_status" class="status_offline">
<span title="Offline: not seen since the last day." class="glyphicon glyphicon-remove-sign"></span>
<span title="Offline: was not seen during the last week." class="glyphicon glyphicon-remove-sign"></span>
{% elif delta_hours >= 1 %}
<p id="server_status" class="status_unknown">
<span title="Unknown: not seen since the last hour." class="glyphicon glyphicon-question-sign"></span>
<span title="Unknown: was not seen during the last day." class="glyphicon glyphicon-question-sign"></span>
{% else %}
<p id="server_status" class="status_online">
<span title="Online" class="glyphicon glyphicon-ok-sign"></span>
<span title="Online: was seen during the last hour." class="glyphicon glyphicon-ok-sign"></span>
{% endif %}
{% endwith %}
Last seen <span class="bold" title="{{server.last_updated|date:'r'}} GMT">

View File

@ -21,17 +21,17 @@
{% if delta_hours > 24 %}
<tr class="danger">
<th>
<span title="Offline: not seen since the last day." class="glyphicon glyphicon-remove-sign"></span>
<span title="Offline: was not seen during the last week." class="glyphicon glyphicon-remove-sign"></span>
</th>
{% elif delta_hours >= 1 %}
<tr class="warning">
<th>
<span title="Unknown: not seen since the last hour." class="glyphicon glyphicon-question-sign"></span>
<span title="Unknown: was not seen during the last day." class="glyphicon glyphicon-question-sign"></span>
</th>
{% else %}
<tr>
<th>
<span title="Online" class="glyphicon glyphicon-ok-sign"></span>
<span title="Online: was seen during the last hour." class="glyphicon glyphicon-ok-sign"></span>
</th>
{% endif %}
{% endwith %}