{% extends "base.html" %} {# Every tag, or one tag's page (#625). A tag's passages come first, each with its opening words and its link, ready to cite; then its documents; then what needs attention - a passage whose words are gone, a document no longer held - each with Remove. Every Remove is a plain form, so the page works without a script. #} {% block title %}kennis - {% if tag %}{{ tag }}{% else %}{{ tags_heading }}{% endif %}{% endblock %} {% block main %} {% if tag %}

{{ icon("tag") }}{{ tag }}

{{ icon("search") }}{{ search_within_tag }}
{# The tag's colour (#627): a swatch each, "from its name" showing the one derived. A plain form; with a script it is sent on each change and the page drawn again, since every chip of the tag changes colour. #}
{{ colour_label }} {% for value, label in colour_choices %} {% endfor %} {# Any colour (#629): the browser's own picker, which always sends #rrggbb; the window moves its lightness per theme until it is seen. #}
    {% for item in tagged %}
  1. {{ icon("file-text") if item.kind == "document" else icon("hash") }} {% if item.href %}{{ item.title }}{% else %}{{ item.title }}{% endif %}

    {% if item.quote %}
    {{ item.quote }}
    {% endif %} {% if item.trouble %}

    {{ icon("triangle-alert") }}{{ item.trouble }}

    {% endif %}
  2. {% endfor %}
{% else %}

{{ tags_heading }}

{% if tags %} {% else %}

{{ no_tags }}

{% endif %} {% endif %} {% endblock %}