Handle errors better, use the plaintext output
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user