|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
{% block content %}
|
|
|
|
|
{% 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='watch-overview.js')}}" defer></script>
|
|
|
|
|
|
|
|
|
@ -34,6 +35,7 @@
|
|
|
|
|
|
|
|
|
|
{% set sort_order = request.args.get('order', 'desc') == 'desc' %}
|
|
|
|
|
{% set sort_attribute = request.args.get('sort', 'last_changed') %}
|
|
|
|
|
{% set pagination_page = request.args.get('page', 0) %}
|
|
|
|
|
|
|
|
|
|
<div id="watch-table-wrapper">
|
|
|
|
|
<table class="pure-table pure-table-striped watch-table">
|
|
|
|
@ -50,7 +52,11 @@
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
|
|
{% for watch in watches|sort(attribute=sort_attribute, reverse=sort_order) %}
|
|
|
|
|
{% set sorted_watches = watches|sort(attribute=sort_attribute, reverse=sort_order) %}
|
|
|
|
|
{% for watch in sorted_watches %}
|
|
|
|
|
|
|
|
|
|
{% if not ( loop.index >= 3 and loop.index <=4) %}{% continue %}{% endif %}
|
|
|
|
|
|
|
|
|
|
<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 %}
|
|
|
|
@ -116,6 +122,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>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
{{ pagination(sorted_watches,3, pagination_page) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|