Added header with breadcrumbs and footer

Also cleaned up titles on various pages.

Closes #61
This commit is contained in:
Simon Willison 2017-11-11 12:36:20 -08:00
commit e4bf66d9b0
7 changed files with 32 additions and 9 deletions

View file

@ -13,9 +13,9 @@
{% endblock %}
{% block content %}
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_hash[:6] }}"><a href="/{{ database }}-{{ database_hash }}">{{ database }}</a></h1>
<div class="hd"><a href="/">home</a> / <a href="/{{ database }}-{{ database_hash }}">{{ database }}</a> / <a href="/{{ database }}-{{ database_hash }}/{{ table }}">{{ table }}</a></div>
<h2><a href="/{{ database }}-{{ database_hash }}/{{ table }}">{{ table }}</a></h2>
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_hash[:6] }}">{{ table }}: {{ ', '.join(primary_key_values) }}</a></h1>
<table>
<thead>
@ -33,5 +33,4 @@
{% endfor %}
</tbody>
</table>
{% if took_ms %}<small>Took {{ took_ms }}</small>{% endif %}
{% endblock %}