{#- An ambiguous name has no page to go to: /m/ resolves the metric, and resolution is exactly what refuses it. A link would promise a destination that answers 404, so the flagged row is rendered inert. -#} {% set tag = "div" if m.ambiguous_with else "a" %} {#- semgrep: tag is the literal div or a set above #} {#- nosemgrep: no-interpolation-in-tag #} <{{ tag }} class="drow{% if m.ambiguous_with %} drow-inert{% endif %}"{% if not m.ambiguous_with %} href="/m/{{ m.name }}"{% endif %}{% if m.description %} title="{{ m.description }}"{% endif %} data-search="{{ m.title|lower }} {{ m.name|lower }} {{ (m.description or '')|lower }}{% if m.ambiguous_with %} ambiguous {{ m.ambiguous_with|join(' ')|lower }}{% endif %}"> {{ m.title }} {{ m.name.split("/")[-1] }} {% if m.ambiguous_with %}ambiguous · {{ m.ambiguous_with | map("replace", "/", " / ") | join(", ") }}{% elif m.origin == "dashboard" %}inline · {{ m.dashboard.split("/")[-1] }}{% endif %} {{ m.source_type }}