|
|
@ -1,7 +1,6 @@
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
{% block content %}
|
|
|
|
{% from '_helpers.jinja' import render_simple_field, render_field %}
|
|
|
|
{% from '_helpers.jinja' import render_simple_field, render_field %}
|
|
|
|
{% from '_pagination.jinja' import pagination %}
|
|
|
|
|
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='jquery-3.6.0.min.js')}}"></script>
|
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='jquery-3.6.0.min.js')}}"></script>
|
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='watch-overview.js')}}" defer></script>
|
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='watch-overview.js')}}" defer></script>
|
|
|
|
|
|
|
|
|
|
|
@ -41,6 +40,9 @@
|
|
|
|
<button class="pure-button button-secondary button-xsmall" name="op" value="notification-default">Use default notification</button>
|
|
|
|
<button class="pure-button button-secondary button-xsmall" name="op" value="notification-default">Use default notification</button>
|
|
|
|
<button class="pure-button button-secondary button-xsmall" style="background: #dd4242; font-size: 70%" name="op" value="delete">Delete</button>
|
|
|
|
<button class="pure-button button-secondary button-xsmall" style="background: #dd4242; font-size: 70%" name="op" value="delete">Delete</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if watches|length >= pagination.per_page %}
|
|
|
|
|
|
|
|
{{ pagination.info }}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a href="{{url_for('index')}}" class="pure-button button-tag {{'active' if not active_tag }}">All</a>
|
|
|
|
<a href="{{url_for('index')}}" class="pure-button button-tag {{'active' if not active_tag }}">All</a>
|
|
|
|
{% for tag in tags %}
|
|
|
|
{% for tag in tags %}
|
|
|
@ -55,6 +57,7 @@
|
|
|
|
{% set pagination_page = request.args.get('page', 0) %}
|
|
|
|
{% set pagination_page = request.args.get('page', 0) %}
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
@ -70,11 +73,7 @@
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
|
|
|
|
{% for watch in watches|sort(attribute=sort_attribute, reverse=sort_order == 'asc') %}
|
|
|
|
{% for watch in (watches|sort(attribute=sort_attribute, reverse=sort_order == 'asc'))[pagination.skip:pagination.skip+pagination.per_page] %}
|
|
|
|
|
|
|
|
|
|
|
|
{# WIP for pagination, disabled for now
|
|
|
|
|
|
|
|
{% if not ( loop.index >= 3 and loop.index <=4) %}{% continue %}{% endif %} -->
|
|
|
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
<tr id="{{ watch.uuid }}"
|
|
|
|
<tr id="{{ watch.uuid }}"
|
|
|
|
class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }} processor-{{ watch['processor'] }}
|
|
|
|
class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }} processor-{{ watch['processor'] }}
|
|
|
|
{% 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 %}
|
|
|
@ -82,7 +81,7 @@
|
|
|
|
{% if watch.paused is defined and watch.paused != False %}paused{% endif %}
|
|
|
|
{% if watch.paused is defined and watch.paused != False %}paused{% endif %}
|
|
|
|
{% if watch.newest_history_key| int > watch.last_viewed and watch.history_n>=2 %}unviewed{% endif %}
|
|
|
|
{% if watch.newest_history_key| int > watch.last_viewed and watch.history_n>=2 %}unviewed{% endif %}
|
|
|
|
{% if watch.uuid in queued_uuids %}queued{% endif %}">
|
|
|
|
{% if watch.uuid in queued_uuids %}queued{% endif %}">
|
|
|
|
<td class="inline checkbox-uuid" ><input name="uuids" type="checkbox" value="{{ watch.uuid}} "/> <span>{{ loop.index }}</span></td>
|
|
|
|
<td class="inline checkbox-uuid" ><input name="uuids" type="checkbox" value="{{ watch.uuid}} "/> <span>{{ loop.index+pagination.skip }}</span></td>
|
|
|
|
<td class="inline watch-controls">
|
|
|
|
<td class="inline watch-controls">
|
|
|
|
{% if not watch.paused %}
|
|
|
|
{% if not watch.paused %}
|
|
|
|
<a class="state-off" href="{{url_for('index', op='pause', uuid=watch.uuid, tag=active_tag)}}"><img src="{{url_for('static_content', group='images', filename='pause.svg')}}" alt="Pause checks" title="Pause checks" class="icon icon-pause"/></a>
|
|
|
|
<a class="state-off" href="{{url_for('index', op='pause', uuid=watch.uuid, tag=active_tag)}}"><img src="{{url_for('static_content', group='images', filename='pause.svg')}}" alt="Pause checks" title="Pause checks" class="icon icon-pause"/></a>
|
|
|
@ -179,10 +178,7 @@
|
|
|
|
<a href="{{ url_for('rss', tag=active_tag , token=app_rss_token)}}"><img alt="RSS Feed" id="feed-icon" src="{{url_for('static_content', group='images', filename='Generic_Feed-icon.svg')}}" height="15"></a>
|
|
|
|
<a href="{{ url_for('rss', tag=active_tag , token=app_rss_token)}}"><img alt="RSS Feed" id="feed-icon" src="{{url_for('static_content', group='images', filename='Generic_Feed-icon.svg')}}" height="15"></a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
{# WIP for pagination, disabled for now
|
|
|
|
{{ pagination.links }}
|
|
|
|
{{ pagination(sorted_watches,3, pagination_page) }}
|
|
|
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|