diagnostics: Remove unnecessary content sizing

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-06-18 19:43:40 +05:30
parent e43df173ca
commit 1cf80f83ba
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -19,33 +19,29 @@
{% load i18n %} {% load i18n %}
<div class="row"> <table class="table table-bordered table-striped diagnostics-results">
<div class="col-lg-12"> <thead>
<table class="table table-bordered table-striped diagnostics-results"> <tr>
<thead> <th class="diagnostic-test">{% trans "Test" %}</th>
<tr> <th class="diagnostics-result">{% trans "Result" %}</th>
<th class="diagnostic-test">{% trans "Test" %}</th> </tr>
<th class="diagnostics-result">{% trans "Result" %}</th> </thead>
</tr> <tbody>
</thead> {% for test, result in results %}
<tbody> <tr>
{% for test, result in results %} <td>{{ test }}</td>
<tr> <td>
<td>{{ test }}</td> {% if result == 'passed' %}
<td> <span class="label label-success">{{ result }}</span>
{% if result == 'passed' %} {% elif result == 'failed' %}
<span class="label label-success">{{ result }}</span> <span class="label label-danger">{{ result }}</span>
{% elif result == 'failed' %} {% elif result == 'error' %}
<span class="label label-danger">{{ result }}</span> <span class="label label-warning">{{ result }}</span>
{% elif result == 'error' %} {% else %}
<span class="label label-warning">{{ result }}</span> {{ result }}
{% else %} {% endif %}
{{ result }} </td>
{% endif %} </tr>
</td> {% endfor %}
</tr> </tbody>
{% endfor %} </table>
</tbody>
</table>
</div>
</div>