mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Merge branch 'master' of github.com:AJamesPhillips/cabot into AJamesPhillips-master
This commit is contained in:
commit
216c260cd2
@ -99,7 +99,7 @@ def _send_hipchat_alert(message, color='green', sender='Cabotapp'):
|
||||
'room_id': room,
|
||||
'from': sender[:15],
|
||||
'message': message,
|
||||
'notify': True,
|
||||
'notify': 1,
|
||||
'color': color,
|
||||
'message_format': 'text',
|
||||
})
|
||||
|
@ -1,5 +1,7 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% load extra %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
@ -7,7 +9,12 @@
|
||||
<div class="col-xs-1"><h2><i class="glyphicon glyphicon-{% if check.polymorphic_ctype.model == 'graphitestatuscheck' %}signal{% elif check.polymorphic_ctype.model == 'httpstatuscheck' %}arrow-up{% elif check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}ok{% endif %}"></i></h2></div>
|
||||
<div class="col-xs-5"><h2>{{ check.name }}</h2></div>
|
||||
<div class="col-xs-4 text-right"><h2><span class="label label-{% if check.calculated_status == 'passing' %}success{% else %}danger{% endif %}">{{ check.calculated_status|capfirst }}</span></h2></div>
|
||||
<div class="col-xs-2 text-right"><h2><a 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 %}" class=""><i class="glyphicon glyphicon-edit"></i></a> <a href="{% url run-check pk=check.id %}"><i class="glyphicon glyphicon-refresh"></i></a></h2></div>
|
||||
<div class="col-xs-2 text-right"><h2>
|
||||
{% if check.polymorphic_ctype.model == 'jenkinsstatuscheck' %}
|
||||
<a href="{% jenkins_human_url check.name %}" class=""><i class="glyphicon glyphicon-link"></i></a>
|
||||
{% endif %}
|
||||
<a 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 %}" class=""><i class="glyphicon glyphicon-edit"></i></a> <a href="{% url run-check pk=check.id %}"><i class="glyphicon glyphicon-refresh"></i></a>
|
||||
</h2></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user