Allow views to be browsed as well as tables

This commit is contained in:
Simon Willison 2017-10-24 16:55:08 -07:00
commit 2a09d37087

View file

@ -20,7 +20,7 @@ td {
<tr>
{% for td in row %}
<td>
{% if loop.index == 2 and row.type == "table" %}
{% if loop.index == 2 and row.type in ("table", "view") %}
<a href="/{{ database }}-{{ database_hash }}/{{ td }}">{{ td }}</a>
{% else %}
{{ td }}