|
|
|
@ -15,10 +15,10 @@
|
|
|
|
|
<!-- user/pass r = requests.get('https://api.github.com/user', auth=('user', 'pass')) -->
|
|
|
|
|
</form>
|
|
|
|
|
<div>
|
|
|
|
|
<a href="/" 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 %}
|
|
|
|
|
{% if tag != "" %}
|
|
|
|
|
<a href="/?tag={{ tag}}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
|
|
|
|
|
<a href="{{url_for('index', tag=tag) }}" class="pure-button button-tag {{'active' if active_tag == tag }}">{{ tag }}</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
@ -45,7 +45,8 @@
|
|
|
|
|
{% if watch.paused is defined and watch.paused != False %}paused{% endif %}
|
|
|
|
|
{% if watch.newest_history_key| int > watch.last_viewed| int %}unviewed{% endif %}">
|
|
|
|
|
<td class="inline">{{ loop.index }}</td>
|
|
|
|
|
<td class="inline paused-state state-{{watch.paused}}"><a href="/?pause={{ watch.uuid}}{% if active_tag %}&tag={{active_tag}}{% endif %}"><img src="/static/images/pause.svg" alt="Pause"/></a></td>
|
|
|
|
|
<td class="inline paused-state state-{{watch.paused}}"><a href="{{url_for('index', pause=watch.uuid, tag=active_tag)}}"><img src="{{url_for('static_content', group='images', filename='pause.svg')}}" alt="Pause"/></a></td>
|
|
|
|
|
|
|
|
|
|
<td class="title-col inline">{{watch.title if watch.title is not none and watch.title|length > 0 else watch.url}}
|
|
|
|
|
<a class="external" target="_blank" rel="noopener" href="{{ watch.url }}"></a>
|
|
|
|
|
{% if watch.last_error is defined and watch.last_error != False %}
|
|
|
|
@ -63,14 +64,14 @@
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a href="/api/checknow?uuid={{ watch.uuid}}{% if request.args.get('tag') %}&tag={{request.args.get('tag')}}{% endif %}"
|
|
|
|
|
<a href="{{ url_for('api_watch_checknow', uuid=watch.uuid, tag=request.args.get('tag')) }}"
|
|
|
|
|
class="pure-button button-small pure-button-primary">Recheck</a>
|
|
|
|
|
<a href="/edit/{{ watch.uuid}}" class="pure-button button-small pure-button-primary">Edit</a>
|
|
|
|
|
<a href="{{ url_for('edit_page', uuid=watch.uuid)}}" class="pure-button button-small pure-button-primary">Edit</a>
|
|
|
|
|
{% if watch.history|length >= 2 %}
|
|
|
|
|
<a href="/diff/{{ watch.uuid}}" target="{{watch.uuid}}" class="pure-button button-small pure-button-primary">Diff</a>
|
|
|
|
|
<a href="{{ url_for('diff_history_page', uuid=watch.uuid) }}" target="{{watch.uuid}}" class="pure-button button-small pure-button-primary">Diff</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
{% if watch.history|length == 1 %}
|
|
|
|
|
<a href="/preview/{{ watch.uuid}}" target="{{watch.uuid}}" class="pure-button button-small pure-button-primary">Preview</a>
|
|
|
|
|
<a href="{{ url_for('preview_page', uuid=watch.uuid)}}" target="{{watch.uuid}}" class="pure-button button-small pure-button-primary">Preview</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
@ -81,15 +82,15 @@
|
|
|
|
|
<ul id="post-list-buttons">
|
|
|
|
|
{% if has_unviewed %}
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/api/mark-all-viewed" class="pure-button button-tag ">Mark all viewed</a>
|
|
|
|
|
<a href="{{url_for('mark_all_viewed', tag=request.args.get('tag')) }}" class="pure-button button-tag ">Mark all viewed</a>
|
|
|
|
|
</li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/api/checknow{% if active_tag%}?tag={{active_tag}}{%endif%}" class="pure-button button-tag ">Recheck
|
|
|
|
|
<a href="{{ url_for('api_watch_checknow', tag=active_tag) }}" class="pure-button button-tag ">Recheck
|
|
|
|
|
all {% if active_tag%}in "{{active_tag}}"{%endif%}</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{{ url_for('index', tag=active_tag , rss=true)}}"><img id="feed-icon" src="/static/images/Generic_Feed-icon.svg" height="15px"></a>
|
|
|
|
|
<a href="{{ url_for('index', tag=active_tag , rss=true)}}"><img id="feed-icon" src="{{url_for('static_content', group='images', filename='Generic_Feed-icon.svg')}}" height="15px"></a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|