2021-04-03 03:55:43 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2022-06-07 17:22:42 +00:00
|
|
|
<script>
|
|
|
|
|
const screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid)}}";
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='diff-overview.js')}}" defer></script>
|
2021-04-03 03:55:43 +00:00
|
|
|
|
|
|
|
|
<div id="settings">
|
2022-02-23 09:49:25 +00:00
|
|
|
<h1>Current - {{watch.last_checked|format_timestamp_timeago}}</h1>
|
2021-04-03 03:55:43 +00:00
|
|
|
</div>
|
|
|
|
|
|
2022-04-02 12:49:32 +00:00
|
|
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
|
|
|
|
|
<div class="tabs">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="tab" id="default-tab"><a href="#text">Text</a></li>
|
2022-06-07 17:22:42 +00:00
|
|
|
<li class="tab" id="screenshot-tab"><a href="#screenshot">Screenshot</a></li>
|
2022-04-02 12:49:32 +00:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-04-03 03:55:43 +00:00
|
|
|
<div id="diff-ui">
|
2022-04-02 12:49:32 +00:00
|
|
|
<div class="tab-pane-inner" id="text">
|
|
|
|
|
<span class="ignored">Grey lines are ignored</span> <span class="triggered">Blue lines are triggers</span>
|
|
|
|
|
<table>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td id="diff-col">
|
2022-02-23 09:49:25 +00:00
|
|
|
{% for row in content %}
|
2022-02-23 11:30:36 +00:00
|
|
|
<div class="{{row.classes}}">{{row.line}}</div>
|
2022-02-23 09:49:25 +00:00
|
|
|
{% endfor %}
|
2022-04-02 12:49:32 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2022-06-07 17:22:42 +00:00
|
|
|
<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 is_html_webdriver %}
|
2022-06-07 17:51:17 +00:00
|
|
|
{% if screenshot %}
|
2022-06-07 17:22:42 +00:00
|
|
|
<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 Playwright/WebDriver enabled</strong>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2021-04-03 03:55:43 +00:00
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|