2021-01-30 09:14:19 +00:00
{% extends 'base.html' %}
{% block content %}
2022-04-09 10:15:34 +00:00
{% from '_helpers.jinja' import render_field, render_checkbox_field, render_button %}
2021-12-04 14:23:23 +00:00
{% from '_common_fields.jinja' import render_common_settings_form %}
2022-04-07 16:18:23 +00:00
< script >
const notification_base_url="{{url_for('ajax_callback_send_notification_test')}}";
{% if emailprefix %}
const email_notification_prefix=JSON.parse('{{emailprefix|tojson}}');
{% endif %}
< / script >
2021-08-12 10:05:59 +00:00
< script type = "text/javascript" src = "{{url_for('static_content', group='js', filename='tabs.js')}}" defer > < / script >
2022-04-05 16:04:26 +00:00
< script type = "text/javascript" src = "{{url_for('static_content', group='js', filename='notifications.js')}}" defer > < / script >
2022-04-07 16:18:23 +00:00
2021-08-12 10:05:59 +00:00
< div class = "edit-form" >
2022-04-02 12:49:32 +00:00
< div class = "tabs collapsable" >
2021-08-12 10:05:59 +00:00
< ul >
< li class = "tab" id = "default-tab" > < a href = "#general" > General< / a > < / li >
< li class = "tab" > < a href = "#notifications" > Notifications< / a > < / li >
< li class = "tab" > < a href = "#fetching" > Fetching< / a > < / li >
2022-01-01 13:53:08 +00:00
< li class = "tab" > < a href = "#filters" > Global Filters< / a > < / li >
2021-08-12 10:05:59 +00:00
< / ul >
< / div >
< div class = "box-wrap inner" >
< form class = "pure-form pure-form-stacked settings" action = "{{url_for('settings_page')}}" method = "POST" >
2022-03-21 21:54:27 +00:00
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" / >
2021-08-12 10:05:59 +00:00
< div class = "tab-pane-inner" id = "general" >
< fieldset >
2021-07-13 08:48:21 +00:00
< div class = "pure-control-group" >
2022-04-24 14:56:32 +00:00
{{ render_field(form.requests.form.time_between_check, class="time-check-widget") }}
2021-08-12 10:05:59 +00:00
< span class = "pure-form-message-inline" > Default time for all watches, when the watch does not have a specific time setting.< / span >
2021-07-13 08:48:21 +00:00
< / div >
< div class = "pure-control-group" >
2022-01-29 18:36:44 +00:00
{% if not hide_remove_pass %}
{% if current_user.is_authenticated %}
2022-04-19 19:43:07 +00:00
{{ render_button(form.application.form.removepassword_button) }}
2022-01-29 18:36:44 +00:00
{% else %}
2022-04-19 19:43:07 +00:00
{{ render_field(form.application.form.password) }}
2022-01-29 18:36:44 +00:00
< span class = "pure-form-message-inline" > Password protection for your changedetection.io application.< / span >
{% endif %}
2021-08-12 10:05:59 +00:00
{% else %}
2022-01-29 18:36:44 +00:00
< span class = "pure-form-message-inline" > Password is locked.< / span >
2021-08-12 10:05:59 +00:00
{% endif %}
2021-07-13 08:48:21 +00:00
< / div >
2021-10-05 16:15:36 +00:00
< div class = "pure-control-group" >
2022-04-19 19:43:07 +00:00
{{ render_field(form.application.form.base_url, placeholder="http://yoursite.com:5000/",
2021-10-05 16:15:36 +00:00
class="m-d") }}
< span class = "pure-form-message-inline" >
2021-12-29 22:57:30 +00:00
Base URL used for the {base_url} token in notifications and RSS links.< br / > Default value is the ENV var 'BASE_URL' (Currently "{{current_base_url}}"),
2021-10-05 16:15:36 +00:00
< a href = "https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting" > read more here< / a > .
< / span >
< / div >
2021-08-12 10:05:59 +00:00
< div class = "pure-control-group" >
2022-04-19 19:43:07 +00:00
{{ render_checkbox_field(form.application.form.extract_title_as_title) }}
2021-08-12 10:05:59 +00:00
< span class = "pure-form-message-inline" > Note: This will automatically apply to all existing watches.< / span >
2021-07-13 08:48:21 +00:00
< / div >
2022-04-02 12:49:32 +00:00
< div class = "pure-control-group" >
2022-04-19 19:43:07 +00:00
{{ render_checkbox_field(form.application.form.real_browser_save_screenshot) }}
2022-04-02 12:49:32 +00:00
< span class = "pure-form-message-inline" > When using a Chrome browser, a screenshot from the last check will be available on the Diff page< / span >
< / div >
2022-05-08 18:35:36 +00:00
{% if form.requests.proxy %}
< div class = "pure-control-group inline-radio" >
{{ render_field(form.requests.form.proxy, class="fetch-backend-proxy") }}
< span class = "pure-form-message-inline" >
Choose a default proxy for all watches
< / span >
< / div >
{% endif %}
2021-08-12 10:05:59 +00:00
< / fieldset >
< / div >
2021-09-17 16:37:26 +00:00
< div class = "tab-pane-inner" id = "notifications" >
2021-10-05 16:15:36 +00:00
< fieldset >
< div class = "field-group" >
2022-04-19 19:43:07 +00:00
{{ render_common_settings_form(form.application.form, current_base_url, emailprefix) }}
2021-10-05 16:15:36 +00:00
< / div >
< / fieldset >
2021-08-12 10:05:59 +00:00
< / div >
2021-09-17 16:37:26 +00:00
2021-08-12 10:05:59 +00:00
< div class = "tab-pane-inner" id = "fetching" >
2022-05-08 18:35:36 +00:00
< div class = "pure-control-group inline-radio" >
2022-04-24 12:40:53 +00:00
{{ render_field(form.application.form.fetch_backend, class="fetch-backend") }}
2021-08-12 10:05:59 +00:00
< span class = "pure-form-message-inline" >
< p > Use the < strong > Basic< / strong > method (default) where your watched sites don't need Javascript to render.< / p >
2021-10-06 07:27:41 +00:00
< p > The < strong > Chrome/Javascript< / strong > method requires a network connection to a running WebDriver+Chrome server, set by the ENV var 'WEBDRIVER_URL'. < / p >
2021-08-12 10:05:59 +00:00
< / span >
2021-07-20 07:44:01 +00:00
< / div >
2021-07-13 08:48:21 +00:00
< / div >
2022-01-01 13:53:08 +00:00
< div class = "tab-pane-inner" id = "filters" >
2022-01-02 21:28:34 +00:00
< fieldset class = "pure-group" >
2022-04-19 19:43:07 +00:00
{{ render_checkbox_field(form.application.form.ignore_whitespace) }}
2022-01-02 21:28:34 +00:00
< span class = "pure-form-message-inline" > Ignore whitespace, tabs and new-lines/line-feeds when considering if a change was detected.< br / >
2022-04-09 08:35:14 +00:00
< i > Note:< / i > Changing this will change the status of your existing watches, possibly trigger alerts etc.
< / span >
< / fieldset >
< fieldset class = "pure-group" >
2022-04-19 19:43:07 +00:00
{{ render_checkbox_field(form.application.form.render_anchor_tag_content) }}
2022-04-09 08:35:14 +00:00
< span class = "pure-form-message-inline" > Render anchor tag content, default disabled, when enabled renders links as < code > (link text)[https://somesite.com]< / code >
< br / >
< i > Note:< / i > Changing this could affect the content of your existing watches, possibly trigger alerts etc.
2022-01-02 21:28:34 +00:00
< / span >
< / fieldset >
2022-03-12 12:29:30 +00:00
< fieldset class = "pure-group" >
2022-04-19 19:43:07 +00:00
{{ render_field(form.application.form.global_subtractive_selectors, rows=5, placeholder="header
2022-03-12 12:29:30 +00:00
footer
nav
.stockticker") }}
< span class = "pure-form-message-inline" >
< ul >
< li > Remove HTML element(s) by CSS selector before text conversion. < / li >
< li > Add multiple elements or CSS selectors per line to ignore multiple parts of the HTML. < / li >
< / ul >
< / span >
< / fieldset >
2022-01-02 21:28:34 +00:00
< fieldset class = "pure-group" >
2022-04-19 19:43:07 +00:00
{{ render_field(form.application.form.global_ignore_text, rows=5, placeholder="Some text to ignore in a line
2022-01-01 13:53:08 +00:00
/some.regex\d{2}/ for case-INsensitive regex
") }}
2022-01-02 21:28:34 +00:00
< span class = "pure-form-message-inline" > Note: This is applied globally in addition to the per-watch rules.< / span > < br / >
2022-01-05 19:42:45 +00:00
< span class = "pure-form-message-inline" >
< ul >
< li > Note: This is applied globally in addition to the per-watch rules.< / li >
< li > Each line processed separately, any line matching will be ignored (removed before creating the checksum)< / li >
2022-03-13 11:00:45 +00:00
< li > Regular Expression support, wrap the line in forward slash < code > /regex/< / code > < / li >
2022-01-05 19:42:45 +00:00
< li > Changing this will affect the comparison checksum which may trigger an alert< / li >
2022-02-23 09:49:25 +00:00
< li > Use the preview/show current tab to see ignores< / li >
2022-01-05 19:42:45 +00:00
< / ul >
2022-01-02 21:28:34 +00:00
< / span >
< / fieldset >
2022-01-01 13:53:08 +00:00
< / div >
2021-08-12 10:05:59 +00:00
< div id = "actions" >
< div class = "pure-control-group" >
2022-03-21 21:54:27 +00:00
{{ render_button(form.save_button) }}
< a href = "{{url_for('index')}}" class = "pure-button button-small button-cancel" > Back< / a >
< a href = "{{url_for('scrub_page')}}" class = "pure-button button-small button-cancel" > Delete History Snapshot Data< / a >
2021-08-12 10:05:59 +00:00
< / div >
2021-01-30 09:14:19 +00:00
< / div >
2021-08-12 10:05:59 +00:00
< / form >
< / div >
2021-01-30 09:14:19 +00:00
< / div >
{% endblock %}