Fixed "Edit check" not working for ping checks

This commit is contained in:
Jonathan Montineri 2014-07-31 13:46:00 +01:00 committed by David Buxton
parent 47c60cf407
commit 6cb4bd4e97
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@
{% endif %} {% endif %}
</td> </td>
<td class="text-right"> <td class="text-right">
<a class="btn btn-xs" href="{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}{% url update-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}{% url update-http-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}{% url update-jenkins-check pk=check.id %}{% endif %}"> <a class="btn btn-xs" href="{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}{% url update-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}{% url update-http-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'icmpstatuscheck' %}{% url update-icmp-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}{% url update-jenkins-check pk=check.id %}{% endif %}">
<i class="glyphicon glyphicon-edit"></i><span class="break"></span> <i class="glyphicon glyphicon-edit"></i><span class="break"></span>
</a> </a>
<a class="btn btn-xs" href="{% url run-check pk=check.id %}"> <a class="btn btn-xs" href="{% url run-check pk=check.id %}">

View File

@ -98,7 +98,7 @@
{% endif %} {% endif %}
</td> </td>
<td class="text-right"> <td class="text-right">
<a class="btn btn-xs" href="{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}{% url update-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}{% url update-http-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}{% url update-jenkins-check pk=check.id %}{% endif %}"> <a class="btn btn-xs" href="{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}{% url update-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}{% url update-http-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'icmpstatuscheck' %}{% url update-icmp-check pk=check.id %}{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}{% url update-jenkins-check pk=check.id %}{% endif %}">
<i class="glyphicon glyphicon-edit"></i><span class="break"></span> <i class="glyphicon glyphicon-edit"></i><span class="break"></span>
</a> </a>
<a class="btn btn-xs" href="{% url run-check pk=check.id %}"> <a class="btn btn-xs" href="{% url run-check pk=check.id %}">