mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-05-02 15:50:36 +00:00
380d8a26a1
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-14 (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
97 lines
5.1 KiB
HTML
97 lines
5.1 KiB
HTML
{% extends 'base.html' %}
|
|
{% from '_helpers.html' import highlight_trigger_ignored_explainer %}
|
|
{% block content %}
|
|
<script>
|
|
const screenshot_url = "{{url_for('static_content', group='screenshot', filename=uuid)}}";
|
|
const triggered_line_numbers = {{ highlight_triggered_line_numbers|tojson }};
|
|
const ignored_line_numbers = {{ highlight_ignored_line_numbers|tojson }};
|
|
const blocked_line_numbers = {{ highlight_blocked_line_numbers|tojson }};
|
|
{% if last_error_screenshot %}
|
|
const error_screenshot_url = "{{url_for('static_content', group='screenshot', filename=uuid, error_screenshot=1) }}";
|
|
{% endif %}
|
|
const highlight_submit_ignore_url = "{{url_for('ui.ui_edit.highlight_submit_ignore_url', uuid=uuid)}}";
|
|
</script>
|
|
<script src="{{url_for('static_content', group='js', filename='plugins.js')}}"></script>
|
|
<script src="{{ url_for('static_content', group='js', filename='diff-overview.js') }}" defer></script>
|
|
<script src="{{ url_for('static_content', group='js', filename='preview.js') }}" defer></script>
|
|
<script src="{{ url_for('static_content', group='js', filename='tabs.js') }}" defer></script>
|
|
{% if versions|length >= 2 %}
|
|
<div id="diff-form" style="text-align: center;">
|
|
<form class="pure-form " action="{{url_for('ui.ui_preview.preview_page', uuid=uuid)}}" method="POST">
|
|
<fieldset>
|
|
<label for="preview-version">{{ _('Select timestamp') }}</label> <select id="preview-version"
|
|
name="from_version"
|
|
class="needs-localtime">
|
|
{% for version in versions|reverse %}
|
|
<option value="{{ version }}" {% if version == current_version %} selected="" {% endif %}>
|
|
{{ version }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="pure-button pure-button-primary">{{ _('Go') }}</button>
|
|
|
|
</fieldset>
|
|
</form>
|
|
<br>
|
|
<strong>{{ _('Keyboard:') }} </strong><a href="" class="pure-button pure-button-primary" id="btn-previous">
|
|
← {{ _('Previous') }}</a> <a class="pure-button pure-button-primary" id="btn-next" href="">
|
|
→ {{ _('Next') }}</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="tabs">
|
|
<ul>
|
|
{% if last_error_text %}
|
|
<li class="tab" id="error-text-tab"><a href="#error-text">{{ _('Error Text') }}</a></li> {% endif %}
|
|
{% if last_error_screenshot %}
|
|
<li class="tab" id="error-screenshot-tab"><a href="#error-screenshot">{{ _('Error Screenshot') }}</a>
|
|
</li> {% endif %}
|
|
{% if history_n > 0 %}
|
|
<li class="tab" id="text-tab"><a href="#text">{{ _('Text') }}</a></li>
|
|
<li class="tab" id="screenshot-tab"><a href="#screenshot">{{ _('Current screenshot') }}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
<div id="diff-ui">
|
|
<div class="tab-pane-inner" id="error-text">
|
|
<div class="snapshot-age error">{{ watch.error_text_ctime|format_seconds_ago }} {{ _('seconds ago') }}</div>
|
|
<pre>
|
|
{{ last_error_text }}
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="error-screenshot">
|
|
<div class="snapshot-age error">{{ watch.snapshot_error_screenshot_ctime|format_seconds_ago }} {{ _('seconds ago') }}
|
|
</div>
|
|
<img id="error-screenshot-img" style="max-width: 80%"
|
|
alt="{{ _('Current erroring screenshot from most recent request') }}">
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="text">
|
|
{{ highlight_trigger_ignored_explainer() }}
|
|
<div class="snapshot-age">{{ current_version|format_timestamp_timeago }}</div>
|
|
<pre id="difference" style="border-left: 2px solid #ddd;">{{ content| diff_unescape_difference_spans }}</pre>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="screenshot">
|
|
<div class="tip">
|
|
{{ _('For now, Differences are performed on text, not graphically, only the latest screenshot is available.') }}
|
|
</div>
|
|
<br>
|
|
{% if capabilities.supports_screenshots %}
|
|
{% if screenshot %}
|
|
<div class="snapshot-age">{{ watch.snapshot_screenshot_ctime|format_timestamp_timeago }}</div>
|
|
<img style="max-width: 80%" id="screenshot-img" alt="{{ _('Current screenshot from most recent request') }}">
|
|
{% else %}
|
|
{{ _('No screenshot available just yet! Try rechecking the page.') }}
|
|
{% endif %}
|
|
{% else %}
|
|
<strong>{{ _('Screenshot requires a Content Fetcher ( Sockpuppetbrowser, selenium, etc ) that supports screenshots.') }}</strong>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|