2021-01-30 09:14:19 +00:00
{% extends 'base.html' %}
{% block content %}
2021-06-21 06:21:05 +00:00
{% from '_helpers.jinja' import render_field %}
2021-12-04 14:23:23 +00:00
{% from '_common_fields.jinja' import render_common_settings_form %}
2021-07-13 08:48:21 +00:00
2021-08-12 10:05:59 +00:00
< script type = "text/javascript" src = "{{url_for('static_content', group='js', filename='settings.js')}}" defer > < / script >
< script type = "text/javascript" src = "{{url_for('static_content', group='js', filename='tabs.js')}}" defer > < / script >
2021-05-08 01:29:41 +00:00
2021-08-12 10:05:59 +00:00
< div class = "edit-form" >
< div class = "tabs" >
< 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" >
< div class = "tab-pane-inner" id = "general" >
< fieldset >
2021-07-13 08:48:21 +00:00
< div class = "pure-control-group" >
2021-08-12 10:05:59 +00:00
{{ render_field(form.minutes_between_check) }}
< 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" >
2021-08-12 10:05:59 +00:00
{% if current_user.is_authenticated %}
< a href = "{{url_for('settings_page', removepassword='yes')}}"
class="pure-button pure-button-primary">Remove password< / a >
{% else %}
{{ render_field(form.password) }}
< span class = "pure-form-message-inline" > Password protection for your changedetection.io application.< / span >
{% endif %}
2021-07-13 08:48:21 +00:00
< / div >
2021-10-05 16:15:36 +00:00
< div class = "pure-control-group" >
{{ render_field(form.base_url, placeholder="http://yoursite.com:5000/",
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" >
{{ render_field(form.extract_title_as_title) }}
< 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 >
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" >
2021-12-04 14:23:23 +00:00
{{ render_common_settings_form(form, current_base_url) }}
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" >
2021-07-20 07:44:01 +00:00
< div class = "pure-control-group" >
2021-08-12 10:05:59 +00:00
{{ render_field(form.fetch_backend) }}
< 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" >
{{ render_field(form.ignore_whitespace) }}
< span class = "pure-form-message-inline" > Ignore whitespace, tabs and new-lines/line-feeds when considering if a change was detected.< br / >
< i > Note:< / i > Changing this will change the status of your existing watches, possibily trigger alerts etc.
< / span >
< / fieldset >
< fieldset class = "pure-group" >
2022-01-01 13:53:08 +00:00
{{ render_field(form.global_ignore_text, rows=5, placeholder="Some text to ignore in a line
/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 / >
< span class = "pure-form-message-inline" > Each line processed separately, any line matching will be ignored.< br / >
2022-01-01 13:53:08 +00:00
Regular Expression support, wrap the line in forward slash < b > /regex/< / b > .
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" >
< button type = "submit" class = "pure-button pure-button-primary" > 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 >
< / 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 %}