datasette/datasette/templates/base.html

51 wiersze
1.7 KiB
HTML
Czysty Zwykły widok Historia

<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %}</title>
2020-10-20 04:24:47 +00:00
<link rel="stylesheet" href="{{ urls.static('app.css') }}?{{ app_css_hash }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% for url in extra_css_urls %}
<link rel="stylesheet" href="{{ url.url }}"{% if url.sri %} integrity="{{ url.sri }}" crossorigin="anonymous"{% endif %}>
{% endfor %}
{% for url in extra_js_urls %}
<script src="{{ url.url }}"{% if url.sri %} integrity="{{ url.sri }}" crossorigin="anonymous"{% endif %}></script>
{% endfor %}
{% block extra_head %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
2020-10-27 18:40:08 +00:00
<header><nav>{% block nav %}
2020-06-29 18:40:40 +00:00
{% if actor %}
<div class="logout">
<strong>{{ display_actor(actor) }}</strong>{% if show_logout %} &middot;
2020-10-20 04:24:47 +00:00
<form action="{{ urls.logout() }}" method="post">
2020-06-29 18:40:40 +00:00
<input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
<button class="button-as-link">Log out</button>
</form>{% endif %}
2020-06-29 18:40:40 +00:00
</div>
{% endif %}
2020-10-27 18:40:08 +00:00
{% endblock %}</nav></header>
2020-10-27 18:40:08 +00:00
<section class="content">
2020-06-02 21:08:12 +00:00
{% block messages %}
{% if show_messages %}
{% for message, message_type in show_messages() %}
<p class="message-{% if message_type == 1 %}info{% elif message_type == 2 %}warning{% elif message_type == 3 %}error{% endif %}">{{ message }}</p>
{% endfor %}
{% endif %}
{% endblock %}
{% block content %}
{% endblock %}
2020-10-27 18:40:08 +00:00
</section>
2018-08-28 08:56:44 +00:00
2020-10-27 18:40:08 +00:00
<footer class="ft">{% block footer %}{% include "_footer.html" %}{% endblock %}</footer>
2018-08-28 08:56:44 +00:00
{% for body_script in body_scripts %}
<script>{{ body_script }}</script>
{% endfor %}
{% if select_templates %}<!-- Templates considered: {{ select_templates|join(", ") }} -->{% endif %}
</body>
</html>