You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
5.8 KiB
111 lines
5.8 KiB
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
{% from '_helpers.jinja' import render_field %}
|
|
{% from '_common_fields.jinja' import render_common_settings_form %}
|
|
|
|
<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>
|
|
|
|
<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>
|
|
<li class="tab"><a href="#filters">Global Filters</a></li>
|
|
</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>
|
|
<div class="pure-control-group">
|
|
{{ 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>
|
|
</div>
|
|
<div class="pure-control-group">
|
|
{% 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 %}
|
|
</div>
|
|
<div class="pure-control-group">
|
|
{{ render_field(form.base_url, placeholder="http://yoursite.com:5000/",
|
|
class="m-d") }}
|
|
<span class="pure-form-message-inline">
|
|
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}}"),
|
|
<a href="https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting">read more here</a>.
|
|
</span>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="notifications">
|
|
<fieldset>
|
|
<div class="field-group">
|
|
{{ render_common_settings_form(form, current_base_url) }}
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="fetching">
|
|
<div class="pure-control-group">
|
|
{{ 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>
|
|
<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>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="tab-pane-inner" id="filters">
|
|
|
|
<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">
|
|
{{ render_field(form.global_ignore_text, rows=5, placeholder="Some text to ignore in a line
|
|
/some.regex\d{2}/ for case-INsensitive regex
|
|
") }}
|
|
<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">
|
|
<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>
|
|
<li>Regular Expression support, wrap the line in forward slash <b>/regex/</b></li>
|
|
<li>Changing this will affect the comparison checksum which may trigger an alert</li>
|
|
</ul>
|
|
</span>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|