Implemented template inheritance and brought back errors

This commit is contained in:
Simon Willison 2017-10-23 19:56:27 -07:00
commit b20d7119e4
5 changed files with 40 additions and 15 deletions

View file

@ -1,4 +1,11 @@
{% extends "base.html" %}
{% block title %}Databases{% endblock %}
{% block content %}
<h1>Database{% if databases.keys()|length != 1 %}s{% endif %}</h1>
{% for name, info in databases.items() %}
<p><a href="{{ name}}-{{ info.hash|truncate(7, end='') }}">{{ name }}</a></p>
{% endfor %}
{% endblock %}