mirror of
https://github.com/simonw/datasette.git
synced 2026-10-19 07:47:00 +02:00
Use URL helper for stored query form action
This commit is contained in:
parent
f3135cf8fd
commit
b0da4f38ea
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
{% block description_source_license %}{% include "_description_source_license.html" %}{% endblock %}
|
||||
|
||||
<form class="sql core" action="{{ urls.database(database) }}{% if stored_query %}/{{ stored_query }}{% else %}/-/query{% endif %}" method="{% if stored_query_write %}post{% else %}get{% endif %}" data-parameters-url="{{ urls.database(database) }}/-/query/parameters">
|
||||
<form class="sql core" action="{% if stored_query %}{{ urls.query(database, stored_query) }}{% else %}{{ urls.database(database) }}/-/query{% endif %}" method="{% if stored_query_write %}post{% else %}get{% endif %}" data-parameters-url="{{ urls.database(database) }}/-/query/parameters">
|
||||
<h3>Custom SQL query{% if display_rows %} returning {% if truncated %}more than {% endif %}{{ "{:,}".format(display_rows|length) }} row{% if display_rows|length == 1 %}{% else %}s{% endif %}{% endif %}{% if not query_error %}
|
||||
<span class="show-hide-sql">(<a href="{{ show_hide_link }}">{{ show_hide_text }}</a>)</span>
|
||||
{% endif %}</h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue