mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Allow views to be browsed as well as tables
This commit is contained in:
parent
02b1814fcf
commit
2a09d37087
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue