kopia lustrzana https://github.com/simonw/datasette
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 #158sanic-07
rodzic
a2b954e828
commit
afbda9e210
|
@ -3,6 +3,7 @@
|
||||||
{% block title %}{{ database }}{% endblock %}
|
{% block title %}{{ database }}{% endblock %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
|
{{ super() }}
|
||||||
{% include "_codemirror.html" %}
|
{% include "_codemirror.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{% block title %}{{ database }}{% if query and query.sql %}{{ query.sql }}{% endif %}{% endblock %}
|
{% block title %}{{ database }}{% if query and query.sql %}{{ query.sql }}{% endif %}{% endblock %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
|
{{ super() }}
|
||||||
{% if columns %}
|
{% if columns %}
|
||||||
<style>
|
<style>
|
||||||
@media only screen and (max-width: 576px) {
|
@media only screen and (max-width: 576px) {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{% block title %}{{ database }}: {{ table }}{% endblock %}
|
{% block title %}{{ database }}: {{ table }}{% endblock %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
|
{{ super() }}
|
||||||
<style>
|
<style>
|
||||||
@media only screen and (max-width: 576px) {
|
@media only screen and (max-width: 576px) {
|
||||||
{% for column in columns %}
|
{% for column in columns %}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
{% if human_filter_description %}where {{ human_filter_description }}{% endif %}{% endblock %}
|
{% if human_filter_description %}where {{ human_filter_description }}{% endif %}{% endblock %}
|
||||||
|
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
|
{{ super() }}
|
||||||
<style>
|
<style>
|
||||||
@media only screen and (max-width: 576px) {
|
@media only screen and (max-width: 576px) {
|
||||||
{% for column in display_columns %}
|
{% for column in display_columns %}
|
||||||
|
|
Ładowanie…
Reference in New Issue