All extra_head blocks now call super

This means you can provide a custom base.html template that populates
extra_head and any of the default child templates will still render content
you included in that block.

Refs #158
sanic-07
Simon Willison 2017-12-06 21:58:42 -08:00
rodzic a2b954e828
commit afbda9e210
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 17E2DEA2588B7F52
4 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
{% block title %}{{ database }}{% endblock %}
{% block extra_head %}
{{ super() }}
{% include "_codemirror.html" %}
{% endblock %}

Wyświetl plik

@ -3,6 +3,7 @@
{% block title %}{{ database }}{% if query and query.sql %}{{ query.sql }}{% endif %}{% endblock %}
{% block extra_head %}
{{ super() }}
{% if columns %}
<style>
@media only screen and (max-width: 576px) {

Wyświetl plik

@ -3,6 +3,7 @@
{% block title %}{{ database }}: {{ table }}{% endblock %}
{% block extra_head %}
{{ super() }}
<style>
@media only screen and (max-width: 576px) {
{% for column in columns %}

Wyświetl plik

@ -4,6 +4,7 @@
{% if human_filter_description %}where {{ human_filter_description }}{% endif %}{% endblock %}
{% block extra_head %}
{{ super() }}
<style>
@media only screen and (max-width: 576px) {
{% for column in display_columns %}