|
|
|
@ -82,12 +82,15 @@
|
|
|
|
|
</tr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% for watch in (watches|sort(attribute=sort_attribute, reverse=sort_order == 'asc'))|pagination_slice(skip=pagination.skip) %}
|
|
|
|
|
|
|
|
|
|
{% set is_unviewed = watch.newest_history_key| int > watch.last_viewed and watch.history_n>=2 %}
|
|
|
|
|
|
|
|
|
|
<tr id="{{ watch.uuid }}"
|
|
|
|
|
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_notification_error is defined and watch.last_notification_error != False %}error{% 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 is_unviewed %}unviewed{% 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+pagination.skip }}</span></td>
|
|
|
|
|
<td class="inline watch-controls">
|
|
|
|
@ -167,7 +170,13 @@
|
|
|
|
|
class="recheck pure-button pure-button-primary">{% if watch.uuid in queued_uuids %}Queued{% else %}Recheck{% endif %}</a>
|
|
|
|
|
<a href="{{ url_for('edit_page', uuid=watch.uuid)}}" class="pure-button pure-button-primary">Edit</a>
|
|
|
|
|
{% if watch.history_n >= 2 %}
|
|
|
|
|
<a href="{{ url_for('diff_history_page', uuid=watch.uuid) }}" target="{{watch.uuid}}" class="pure-button pure-button-primary diff-link">Diff</a>
|
|
|
|
|
|
|
|
|
|
{% if is_unviewed %}
|
|
|
|
|
<a href="{{ url_for('diff_history_page', uuid=watch.uuid, from_version=watch.get_next_snapshot_key_to_last_viewed) }}" target="{{watch.uuid}}" class="pure-button pure-button-primary diff-link">Diff</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ url_for('diff_history_page', uuid=watch.uuid)}}" target="{{watch.uuid}}" class="pure-button pure-button-primary diff-link">Diff</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
{% if watch.history_n == 1 or (watch.history_n ==0 and watch.error_text_ctime )%}
|
|
|
|
|
<a href="{{ url_for('preview_page', uuid=watch.uuid)}}" target="{{watch.uuid}}" class="pure-button pure-button-primary">Preview</a>
|
|
|
|
|