Better titles for canned query pages, closes #887

This commit is contained in:
Simon Willison 2020-07-01 17:23:37 -07:00
commit 57879dc8b3
3 changed files with 10 additions and 3 deletions

View file

@ -28,7 +28,7 @@
{% block content %}
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_color(database) }}">{{ metadata.title or database }}{% if private %} 🔒{% endif %}</h1>
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_color(database) }}">{{ metadata.title or database }}{% if canned_query and not metadata.title %}: {{ canned_query }}{% endif %}{% if private %} 🔒{% endif %}</h1>
{% block description_source_license %}{% include "_description_source_license.html" %}{% endblock %}