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)}}";
2022-08-15 16:56:53 +00:00
{% if last_error_screenshot %}
const error_screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid, error_screenshot=1) }}";
{% endif %}
2023-08-24 12:29:48 +00:00
const highlight_submit_ignore_url="{{url_for('highlight_submit_ignore_url', uuid=uuid)}}";
2022-06-07 17:22:42 +00:00
< / script >
2023-04-30 08:38:50 +00:00
< script src = "{{url_for('static_content', group='js', filename='diff-overview.js')}}" defer > < / script >
2021-04-03 03:55:43 +00:00
2023-04-30 08:38:50 +00:00
< script src = "{{url_for('static_content', group='js', filename='tabs.js')}}" defer > < / script >
2022-04-02 12:49:32 +00:00
< div class = "tabs" >
< ul >
2022-08-15 16:56:53 +00:00
{% 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 >
2022-06-07 17:22:42 +00:00
< li class = "tab" id = "screenshot-tab" > < a href = "#screenshot" > Screenshot< / a > < / li >
2022-08-15 16:56:53 +00:00
{% endif %}
2022-04-02 12:49:32 +00:00
< / ul >
< / div >
2023-08-24 12:29:48 +00:00
< form > < input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" > < / form >
2021-04-03 03:55:43 +00:00
< div id = "diff-ui" >
2022-08-15 16:56:53 +00:00
< 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 >
2023-04-29 20:29:57 +00:00
< img id = "error-screenshot-img" style = "max-width: 80%" alt = "Current erroring screenshot from most recent request" >
2022-08-15 16:56:53 +00:00
< / div >
2022-04-02 12:49:32 +00:00
< div class = "tab-pane-inner" id = "text" >
2022-08-15 16:56:53 +00:00
< div class = "snapshot-age" > {{watch.snapshot_text_ctime|format_timestamp_timeago}}< / div >
2023-08-24 12:29:48 +00:00
< span class = "ignored" > Grey lines are ignored< / span > < span class = "triggered" > Blue lines are triggers< / span > < span class = "tip" > < strong > Pro-tip< / strong > : Highlight text to add to ignore filters< / span >
2022-04-02 12:49:32 +00:00
< table >
< tbody >
< tr >
2023-08-24 12:29:48 +00:00
< td id = "diff-col" class = "highlightable-filter" >
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-08-15 16:56:53 +00:00
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 >
2023-03-12 16:05:34 +00:00
< br >
2022-06-07 17:22:42 +00:00
{% if is_html_webdriver %}
2022-06-07 17:51:17 +00:00
{% if screenshot %}
2022-08-25 09:18:00 +00:00
< div class = "snapshot-age" > {{watch.snapshot_screenshot_ctime|format_timestamp_timeago}}< / div >
2023-04-29 20:29:57 +00:00
< img style = "max-width: 80%" id = "screenshot-img" alt = "Current screenshot from most recent request" >
2022-06-07 17:22:42 +00:00
{% 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 >
2023-03-12 16:05:34 +00:00
{% endblock %}