mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
27 lines
652 B
HTML
27 lines
652 B
HTML
<h1>{{ database }}</h1>
|
|
|
|
<style>
|
|
td {
|
|
vertical-align: top;
|
|
border-top: 1px solid #666;
|
|
padding: 2px 4px;
|
|
}
|
|
</style>
|
|
<table>
|
|
<tr>
|
|
{% for header in headers %}<th scope="col">{{ header }}</th>{% endfor %}
|
|
</tr>
|
|
{% for row in rows %}
|
|
<tr>
|
|
{% for td in row %}
|
|
<td>
|
|
{% if loop.index == 2 and row.type == "table" %}
|
|
<a href="/{{ database }}/{{ td }}">{{ td }}</a>
|
|
{% else %}
|
|
{{ td }}
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|