mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
f59c840e7d
commit
eed6a0fe36
5 changed files with 75 additions and 5 deletions
|
|
@ -21,6 +21,12 @@
|
|||
<h2>{{ "{:,}".format(table_rows) }} total row{% if table_rows == 1 %}{% else %}s{% endif %} in this table</h2>
|
||||
{% endif %}
|
||||
|
||||
{% if supports_search %}
|
||||
<form action="/{{ database }}-{{ database_hash }}/{{ table|quote_plus }}" method="get">
|
||||
<p><input type="search" name="_search" value="{{ search }}"> <input type="submit" value="Search"></p>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if query.params %}
|
||||
<pre>{{ query.sql }}</pre>
|
||||
<pre>params = {{ query.params|tojson(4) }}</pre>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue