Implemented new Natalie design

This commit is contained in:
Natalie Downe 2020-10-27 11:40:08 -07:00 committed by Simon Willison
commit df19a48a3b
3 changed files with 12 additions and 9 deletions

View file

@ -14,7 +14,7 @@
</head>
<body class="{% block body_class %}{% endblock %}">
<nav class="hd">{% block nav %}
<header><nav>{% block nav %}
{% if actor %}
<div class="logout">
<strong>{{ display_actor(actor) }}</strong>{% if show_logout %} &middot;
@ -24,9 +24,9 @@
</form>{% endif %}
</div>
{% endif %}
{% endblock %}</nav>
{% endblock %}</nav></header>
<div class="bd">
<section class="content">
{% block messages %}
{% if show_messages %}
{% for message, message_type in show_messages() %}
@ -37,9 +37,9 @@
{% block content %}
{% endblock %}
</div>
</section>
<div class="ft">{% block footer %}{% include "_footer.html" %}{% endblock %}</div>
<footer class="ft">{% block footer %}{% include "_footer.html" %}{% endblock %}</footer>
{% for body_script in body_scripts %}
<script>{{ body_script }}</script>

View file

@ -49,7 +49,7 @@
{% if views %}
<h2 id="views">Views</h2>
<ul>
<ul class="bullets">
{% for view in views %}
<li><a href="{{ urls.database(database) }}/{{ view.name|urlencode }}">{{ view.name }}</a>{% if view.private %} 🔒{% endif %}</li>
{% endfor %}
@ -58,7 +58,7 @@
{% if queries %}
<h2 id="queries">Queries</h2>
<ul>
<ul class="bullets">
{% for query in queries %}
<li><a href="{{ urls.query(database, query.name) }}{% if query.fragment %}#{{ query.fragment }}{% endif %}" title="{{ query.description or query.sql }}">{{ query.title or query.name }}</a>{% if query.private %} 🔒{% endif %}</li>
{% endfor %}