Refactor templates for better top nav customization, refs #540

This commit is contained in:
Simon Willison 2019-07-05 13:34:41 -07:00
commit a18e0964ec
7 changed files with 69 additions and 29 deletions

View file

@ -16,8 +16,15 @@
{% block body_class %}table db-{{ database|to_css_class }} table-{{ table|to_css_class }}{% endblock %}
{% block nav %}
<p class="crumbs">
<a href="/">home</a> /
<a href="{{ database_url(database) }}">{{ database }}</a>
</p>
{{ super() }}
{% endblock %}
{% block content %}
<div class="hd"><a href="/">home</a> / <a href="{{ database_url(database) }}">{{ database }}</a></div>
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_color(database) }}">{{ metadata.title or table }}{% if is_view %} (view){% endif %}</h1>