Skip to content

Commit

Permalink
Merge pull request arachnys#291 from xinity/develop
Browse files Browse the repository at this point in the history
add acknowledgment button on service dashboard
  • Loading branch information
dbuxton committed Dec 7, 2015
2 parents 087c3be + d547585 commit 525dffc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cabot/templates/cabotapp/_service_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<th>Overall</th>
<th>Active checks</th>
<th>Disabled checks</th>
<th>Acknowledgment</th>
<th></th>
</tr>
</thead>
Expand All @@ -31,6 +32,23 @@
<td>
<span class="label label-{% if service.inactive_status_checks.all.count > 0 %}warning{% else %}default{% endif %}">{{ service.inactive_status_checks.all.count }}</span>
</td>
<td>
{% if service.overall_status != service.PASSING_STATUS %}
<div class="col-xs-12 alert alert-warning">
<div class="row">
{% if service.unexpired_acknowledgement %}
<div class="col-xs-4">
<a href="{% url 'remove-acknowledgement' pk=service.id %}" class="btn btn-xs btn-warning btn-block"><i class="glyphicon glyphicon-play"></i> Re-enable alerts</a>
</div>
{% else %}
<div class="col-xs-4">
<a class="btn btn-success btn-block btn-xs" href="{% url 'acknowledge-alert' pk=service.id %}"><i class="glyphicon glyphicon-pause"></i> Acknowledge alert</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
</td>
<td class="text-right">
<a class="btn btn-xs" href="{% url "update-service" pk=service.id %}" role="button">
<i class="glyphicon glyphicon-edit"></i>
Expand Down

0 comments on commit 525dffc

Please sign in to comment.