...
 
Commits (2)
......@@ -81,17 +81,17 @@
<i class=" text-success fas fa-check-circle"></i> {% for f in deploy_features_pass %}<abbr title="{{ f.description }}">{{ f.name|slice:"7:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}<br />
{% endif %}{% if deploy_features_fail %}
<i class=" text-danger fas fa-exclamation-circle"></i> {% for f in deploy_features_fail %}<abbr title="{{ f.description }}">{{ f.name|slice:"7:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}</td>
{% endif %}{% if not deploy_features_pass and not deploy_features_fail %}<i>...</i>{% endif %}</td>
<td>{% if boot_features_pass %}
<i class=" text-success fas fa-check-circle"></i> {% for f in boot_features_pass %}<abbr title="{{ f.description }}">{{ f.name|slice:"5:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}<br />
{% endif %}{% if boot_features_fail %}
<i class=" text-danger fas fa-exclamation-circle"></i> {% for f in boot_features_fail %}<abbr title="{{ f.description }}">{{ f.name|slice:"5:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}</td>
{% endif %}{% if not boot_features_pass and not boot_features_fail %}<i>...</i>{% endif %}</td>
<td>{% if test_features_pass %}
<i class=" text-success fas fa-check-circle"></i> {% for f in test_features_pass %}<abbr title="{{ f.description }}">{{ f.name|slice:"5:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}<br />
{% endif %}{% if test_features_fail %}
<i class=" text-danger fas fa-exclamation-circle"></i> {% for f in test_features_fail %}<abbr title="{{ f.description }}">{{ f.name|slice:"5:" }}</abbr>{% if not forloop.last %}, {% endif %}{% endfor %}
{% endif %}</td>
{% endif %}{% if not test_features_pass and not test_features_fail %}<i>...</i>{% endif %}</td>
</tr>
{% empty %}
<tr>
......
......@@ -54,7 +54,7 @@ def api_v0_1_jobs(request):
# Check that the token is right for this lab
try:
Token.objects.get(token=token, lab=lab)
except Token.DoesNoeExist:
except Token.DoesNotExist:
return HttpResponseForbidden("Wrong token")
dt, _ = DeviceType.objects.get_or_create(name=metadata["device.type"])
......