{% extends "base.html" %} {#- Settings → Rules. Expects: scope, scopes, rules (effective Rules of the scope), rules_md, versions (newest first), proposals (open, all scopes), decided (of this scope), coordinators, config_differs, diffs, version_error, optional error, confirm, message. Writes are plain form posts from this page in a browser (cookie + CSRF). -#} {%- macro hidden_csrf() -%}{%- endmacro %} {% block title %}Rules · relaybay{% endblock %} {% block crumbs %}/Settings/Rules{% endblock %} {% block content %}

Rules

{% with tab = "rules" %}{% include "_settings_tabs.html" %}{% endwith %}

The working rules agents read and stage moves are checked against, with every version kept. {% if coordinators %}Agents propose changes; the coordinator sessions named in config.toml may also change them directly.{% else %}No coordinator is configured, so every change an agent wants is a proposal.{% endif %}

{% if message %}

{{ message }}

{% endif %} {% if error %}{% endif %} {% if confirm %}

Confirm

{{ confirm.message }}

{{ hidden_csrf() }} {% for name, value in confirm.fields %}{% endfor %}
Cancel
{% endif %} {% include "_rule_proposals.html" %}

Current rules

{{ rules.version_text }} · hash {{ rules.hash }} · {{ rules.mode }} mode

{% if rules.override_error %}{% endif %} {% if version_error %}{% endif %} {% if config_differs %}

Changed since config.toml was read: the versions below are in force. A later change of [rules] in the file makes a new version that replaces them.

{% endif %}
{{ rules_md|markdown }}

History of {{ scope }}

{% if versions %} {% else %}

This project has no rules of its own: it follows the global rules.

{% endif %}
{% if decided %}

Decided proposals

{% endif %}
{% endblock %}