An open source, non-profit web search engine
Use {% comment %} for the multi-line template comments
Daoud Clarke5bb9bdaac088
diff --git a/mwmbl/templates/_search_bar.html b/mwmbl/templates/_search_bar.htmlindex 2b027a8..a3036a1 100644--- a/mwmbl/templates/_search_bar.html+++ b/mwmbl/templates/_search_bar.html@@ -1,5 +1,5 @@-{# The search bar, shared by index.html and base.html. It used to be duplicated between- them and had already drifted, so change it here only. #}+{% comment %} The search bar, shared by index.html and base.html. It used to be duplicated between+ them and had already drifted, so change it here only. {% endcomment %}<header class="search-menu compact"><a href="/" class="branding"><img class="brand-icon" src="/static/images/logo.svg" width="40" height="40" alt="mwmbl logo">@@ -21,7 +21,7 @@hx-target=".main"hx-sync="closest form:replace">- {# The same view again, once the query has settled, and this one may call Wikipedia.+ {% comment %} The same view again, once the query has settled, and this one may call Wikipedia.Typing a 15-character query used to cost a Wikipedia call per keystroke to answer asingle question, and 92% of those prefixes are ones nobody ever searches for, so nocache can absorb them.@@ -42,7 +42,7 @@actually changes. The `changed` modifier is not the fix here: htmx keeps lastValueon the element being listened to, which for both triggers is the same.search-bar-input, so the 100ms trigger above would consume the change and this one- would never fire at all. #}+ would never fire at all. {% endcomment %}<spanclass="external-search"hx-get="/app/home/?external=1"diff --git a/mwmbl/templates/admin/blacklist_status.html b/mwmbl/templates/admin/blacklist_status.htmlindex 8a10368..86bc837 100644--- a/mwmbl/templates/admin/blacklist_status.html+++ b/mwmbl/templates/admin/blacklist_status.html@@ -66,8 +66,8 @@<td class="key">Published version</td><td>{% if snapshot.published_version %}- {# Truncated to the same 12 characters the publish/load log lines use, so- the page and the logs can be matched up by eye. #}+ {% comment %} Truncated to the same 12 characters the publish/load log lines use, so+ the page and the logs can be matched up by eye. {% endcomment %}<code title="{{ snapshot.published_version }}">{{ snapshot.published_version|slice:":12" }}</code>{% if not snapshot.blob_present %}<span class="bad">— version present but blob missing; it wasdiff --git a/mwmbl/templates/admin/mwmbl_index.html b/mwmbl/templates/admin/mwmbl_index.htmlindex 3e92eed..be54f21 100644--- a/mwmbl/templates/admin/mwmbl_index.html+++ b/mwmbl/templates/admin/mwmbl_index.html@@ -1,9 +1,9 @@{% extends "admin/index.html" %}-{# Wired up as admin.site.index_template. A file named admin/index.html here would not+{% comment %} Wired up as admin.site.index_template. A file named admin/index.html here would notwin: django.contrib.admin comes before mwmbl in INSTALLED_APPS, so the app-directoriesloader finds Django's copy first. A distinct name sidesteps that, and lets this template- extend the original rather than duplicate it. #}+ extend the original rather than duplicate it. {% endcomment %}{% block content %}{{ block.super }}