Handle errors better, use the plaintext output

This commit is contained in:
Leigh Morresi
2021-01-27 15:56:59 +01:00
parent 2f018ac04c
commit 646a54945a
6 changed files with 68 additions and 26 deletions

View File

@@ -16,7 +16,7 @@
<!-- make a nice list of tags here to click on -->
<table class="pure-table pure-table-striped">
<table class="pure-table pure-table-striped watch-table">
<thead>
<tr>
<th>#</th>
@@ -30,10 +30,12 @@
{% for watch in watches %}
<tr class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }}">
<tr id="{{ watch.uuid }}" class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }} {% if watch.last_error is defined and watch.last_error != False %}error{% endif %}">
<td>{{ loop.index }}</td>
<td>{{ watch.url }}</td>
<td>{{watch|format_last_checked_time}}</td>
<td>{{watch|format_last_checked_time}}
{% if watch.last_error is defined and watch.last_error != False %} !! {% endif %}
</td>
<td>{{watch.last_changed|format_timestamp}}</td>
<td><a href="/api/checknow?uuid={{ watch.uuid}}" class="pure-button pure-button-primary">Recheck</a> <button type="submit" class="pure-button pure-button-primary">Delete</button></td>
</tr>