mirror of
https://github.com/simonw/datasette.git
synced 2026-10-07 18:06:59 +02:00
* Redesign app, action, and column menus * Remove legacy menus and use shared menus throughout pattern examples
51 lines
2.2 KiB
HTML
51 lines
2.2 KiB
HTML
{% import "_crumbs.html" as crumbs with context %}<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ static('app.css') }}">
|
|
<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.get("sri") %} integrity="{{ url.sri }}" crossorigin="anonymous"{% endif %}>
|
|
{% endfor %}
|
|
<script>window.datasetteVersion = '{{ datasette_version }}';</script>
|
|
<script src="{{ static('modal.js') }}" defer></script>
|
|
<script src="{{ static('menus.js') }}" defer></script>
|
|
<script src="{{ static('datasette-manager.js') }}" defer></script>
|
|
{% for url in extra_js_urls %}
|
|
<script {% if url.module %}type="module" {% endif %}src="{{ url.url }}"{% if url.get("sri") %} integrity="{{ url.sri }}" crossorigin="anonymous"{% endif %}></script>
|
|
{% endfor %}
|
|
{%- if alternate_url_json -%}
|
|
<link rel="alternate" type="application/json+datasette" href="{{ alternate_url_json }}">
|
|
{%- endif -%}
|
|
{%- block extra_head %}{% endblock -%}
|
|
</head>
|
|
<body class="{% block body_class %}{% endblock %}">
|
|
<div class="not-footer">
|
|
<header class="hd app-header"><nav>{% block nav %}{% block crumbs %}{{ crumbs.nav(request=request) }}{% endblock %}
|
|
{% include "_app_menu.html" %}
|
|
{% endblock %}</nav></header>
|
|
|
|
{% 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 %}
|
|
|
|
<section class="content">
|
|
{% block content %}
|
|
{% endblock %}
|
|
</section>
|
|
</div>
|
|
<footer class="ft">{% block footer %}{% include "_footer.html" %}{% endblock %}</footer>
|
|
|
|
{% for body_script in body_scripts %}
|
|
<script{% if body_script.module %} type="module"{% endif %}>{{ body_script.script }}</script>
|
|
{% endfor %}
|
|
|
|
{% if select_templates %}<!-- Templates considered: {{ select_templates|join(", ") }} -->{% endif %}
|
|
<script src="{{ static('navigation-search.js') }}" defer></script>
|
|
<navigation-search url="{{ urls.path("/-/jump") }}"></navigation-search>
|
|
</body>
|
|
</html>
|