{% from "_macros.html" import state_chip, avatar %} {% set head %}{{ avatar(d.label) }} {{ d.label }} {{ state_chip(d.entity.state) }}{% endset %} {% include "_panel_head.html" %}
{% if d.contradictions %}
{{ icon("alert-triangle") }} {{ plural(d.contradictions|length, 'contradiction') }}
{% endif %}
Fields
{% for a in d.attributes %}
{{ icon(ATTRIBUTE_ICONS.get(a.attribute, 'circle-dashed'), 14) }} {{ a.attribute|replace('_', ' ') }} {{ fmt(a.canonical if a.canonical is not none else a.values[0].value) }} {{ a.shown.observations|length if a.shown else 0 }}/{{ a.observed }}
{% endfor %} {% if d.authorities %}
Authorities
{% for v in d.authorities %}
{{ icon("scale", 14) }} {{ v.source|upper }}{% if v.reference %} reference{% endif %} {% if not v.agrees %}{{ icon("alert-triangle", 14) }} {% endif %}{{ v.accepted }} {{ plural(v.observations|length, 'record') }}{% for s, n in v.statuses %} ยท {{ n }} {{ s }}{% endfor %}
{% endfor %} {% endif %}
Observations {{ "{:,}".format(d.member_count) }}
{% for m in d.members %}
{{ icon("database", 14) }} {{ m.source.type }} {{ (m.attributes or {}).get('name') or m.observation_id }}
{% endfor %} {% if d.member_count > d.members|length %}
+{{ "{:,}".format(d.member_count - d.members|length) }} more
{% endif %} {% if d.open_reviews %}
Open reviews
{% for r in d.open_reviews %}
{{ icon("list-check", 14) }} {{ r.kind }}Open the review
{% endfor %} {% endif %}
{{ icon("external-link", 14) }} Open