Browse Source

If the project has no integrations, show an appropriate message in the Details page, "Notification Methods" section.

pull/342/head
Pēteris Caune 5 years ago
parent
commit
26ad94d068
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      static/css/details.css
  2. +10
    -0
      templates/front/details.html

+ 1
- 1
static/css/details.css View File

@ -100,7 +100,7 @@
color: #888;
}
.alert.no-events {
.alert.no-events, .alert.no-channels {
border: #ddd;
background: #F5F5F5;
color: #444;


+ 10
- 0
templates/front/details.html View File

@ -191,6 +191,7 @@
<div class="details-block">
<h2>Notification Methods</h2>
{% if channels %}
<table id="details-integrations" class="table">
{% for channel in channels %}
<tr data-url="{% url 'hc-switch-channel' check.code channel.code %}" {% if channel in enabled_channels %}class="on"{% endif %}>
@ -206,6 +207,15 @@
</tr>
{% endfor %}
</table>
{% else %}
<div class="alert no-channels">
No notification methods set up yet.
<br />
Set up your preferred methods of notification in the
<a href="{% url 'hc-p-channels' project.code %}">Integrations</a>
page.
</div>
{% endif %}
</div>
<div class="details-block">


Loading…
Cancel
Save