Databases now get distinct colours

A left border based on their content hash.

Closes #31
This commit is contained in:
Simon Willison 2017-11-09 06:12:42 -08:00
commit b2dee11fcd
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
{% block title %}{{ database }}: {{ table }}{% endblock %}
{% block content %}
<h1><a href="/{{ database }}-{{ database_hash }}">{{ database }}</a></h1>
<h1 style="padding-left: 10px; border-left: 10px solid #{{ database_hash[:6] }}"><a href="/{{ database }}-{{ database_hash }}">{{ database }}</a></h1>
<h2>{{ table }}{% if total_rows != None %} ({{ "{:,}".format(total_rows) }} total row{% if total_rows == 1 %}{% else %}s{% endif %} in this table){% endif %}</h2>