Browse Source

UI tweak for the special case when the account has no tags.

pull/142/head
Pēteris Caune 7 years ago
parent
commit
780796dc2a
2 changed files with 6 additions and 11 deletions
  1. +4
    -1
      static/css/settings.css
  2. +2
    -10
      templates/accounts/badges.html

+ 4
- 1
static/css/settings.css View File

@ -30,10 +30,13 @@
}
.table td.overall-status {
padding-top: 32px;
border-top: 0;
}
.table td.have-tags {
padding-top: 32px;
}
#badges-json {
display: none;
}


+ 2
- 10
templates/accounts/badges.html View File

@ -29,7 +29,6 @@
URLs. If you wish, you can add them to your READMEs,
dashboards or status pages.
</p>
{% if urls %}
<div id="b-format" class="btn-group" data-toggle="buttons">
<label id="show-svg" class="btn btn-default active">
@ -52,7 +51,7 @@
</tr>
{% endfor %}
<tr>
<td class="overall-status" colspan="2">Overall status:</td>
<td class="overall-status {% if urls %}have-tags{% endif %}" colspan="2">Overall status:</td>
</tr>
<tr>
<td>
@ -74,7 +73,7 @@
</tr>
{% endfor %}
<tr>
<td class="overall-status" colspan="2">Overall status:</td>
<td class="overall-status {% if urls %}have-tags{% endif %}"" colspan="2">Overall status:</td>
</tr>
<tr>
<td class="json-response" data-url="{{ master.json }}">
@ -83,13 +82,6 @@
</td>
</tr>
</table>
{% else %}
<p>
To get started with status badges, add some tags to
your checks!
</p>
{% endif %}
</div>
</div>
</div>


Loading…
Cancel
Save