Summary table tweaks

This commit is contained in:
Pēteris Caune 2016-06-25 06:32:10 +03:00
parent 99434fcf9c
commit aba0c0ebf0

View File

@ -11,11 +11,12 @@
text-align: left; text-align: left;
padding: 8px; padding: 8px;
font-size: 12px; font-size: 12px;
color: #9BA2AB;
} }
.checks td { .checks td {
border-top: 1px solid #EDEFF2; border-top: 1px solid #EDEFF2;
padding: 8px; padding: 16px 8px;
} }
.badge { .badge {
@ -36,8 +37,11 @@
font-style: italic; font-style: italic;
} }
.view-log { .tag {
font-size: 13px; font-size: 12px;
background-color: #eee;
padding: 2px 4px;
color: #555;
} }
</style> </style>
@ -46,7 +50,6 @@
<tr> <tr>
<th></th> <th></th>
<th>Name</th> <th>Name</th>
<th>Period</th>
<th>Last Ping</th> <th>Last Ping</th>
</tr> </tr>
{% for check in checks %} {% for check in checks %}
@ -64,27 +67,31 @@
</td> </td>
<td> <td>
{% if check.name %} {% if check.name %}
{{ check.name }} {% if check.name|length > 20 %}
<small>{{ check.name }}</small>
{% else %}
{{ check.name }}
{% endif %}
{% else %} {% else %}
<span class="unnamed">unnamed</span> <span class="unnamed">unnamed</span>
{% endif %} {% endif %}
{% if check.tags %} {% if check.tags %}
<br /> <br />
<small>{{ check.tags }}</small> {% for tag in check.tags_list %}
<span class="tag">{{ tag }}</span>
{% endfor %}
{% endif %} {% endif %}
</td> </td>
<td>
{{ check.timeout|hc_duration }}
</td>
<td> <td>
{% if check.last_ping %} {% if check.last_ping %}
{{ check.last_ping|naturaltime }} {{ check.last_ping|naturaltime }}
{% else %} {% else %}
Never Never
{% endif %} {% endif %}
</td> </td>
<td> <td>
<a class="view-log" href="{{ check.log_url }}">View Log</a> <a class="view-log" href="{{ check.log_url }}">Log</a>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}