{# R84.3 (Hani #1 2026-11-16): the rules that apply to this device - its own (most specific, they win) and those it follows from its update plans, location, ecosystem and the whole Portal. #} {% set R = device_rules %}

Rules {{ fresh_tag("device:rules") }}{{ fresh_tag("design:details-370") }}

Add rule ▾
{% if not R %}

Rules are not available on this Portal yet.

{% else %}
{% for key, label in R.categories %}{{ R.counts[key] or 0 }} {{ label }}{% endfor %}

This device's own rules

{% if R.own %}{% with rows=R.own, show_scope=False %}{% include "_rules_table.html" %}{% endwith %}{% else %}

None: it follows the rules below.

{% endif %}

Rules it follows

{% if R.inherited %}{% with rows=R.inherited, show_scope=True %}{% include "_rules_table.html" %}{% endwith %}{% else %}

No rule covers this device yet. Settings › Rules

{% endif %}

The most specific rule wins: this device, then its update plans and location, then its ecosystem, then the whole Portal. All rules

{% endif %}