|
|
@ -32,22 +32,25 @@
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% set sort_order = request.args.get('order', 'desc') == 'desc' %}
|
|
|
|
|
|
|
|
{% set sort_attribute = request.args.get('sort', 'last_changed') %}
|
|
|
|
|
|
|
|
|
|
|
|
<div id="watch-table-wrapper">
|
|
|
|
<div id="watch-table-wrapper">
|
|
|
|
<table class="pure-table pure-table-striped watch-table">
|
|
|
|
<table class="pure-table pure-table-striped watch-table">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>#</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
{% set link_order = "asc" if sort_order else "desc" %}
|
|
|
|
<th>Last Checked</th>
|
|
|
|
<th><a href="{{url_for('index', sort='label', order=link_order)}}">Website</a></th>
|
|
|
|
<th>Last Changed</th>
|
|
|
|
<th><a href="{{url_for('index', sort='last_checked', order=link_order)}}">Last Checked</a></th>
|
|
|
|
|
|
|
|
<th><a href="{{url_for('index', sort='last_changed', order=link_order)}}">Last Changed</a></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% for watch in watches|sort(attribute=sort_attribute, reverse=sort_order) %}
|
|
|
|
{% for watch in watches|sort(attribute='last_changed', reverse=True) %}
|
|
|
|
|
|
|
|
<tr id="{{ watch.uuid }}"
|
|
|
|
<tr id="{{ watch.uuid }}"
|
|
|
|
class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }}
|
|
|
|
class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }}
|
|
|
|
{% if watch.last_error is defined and watch.last_error != False %}error{% endif %}
|
|
|
|
{% if watch.last_error is defined and watch.last_error != False %}error{% endif %}
|
|
|
|