mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Hide 'view and edit SQL' if config.allow_sql turned off
This commit is contained in:
parent
7d0299edd4
commit
fe5b6ea95a
2 changed files with 10 additions and 1 deletions
|
|
@ -88,7 +88,7 @@
|
|||
</div>
|
||||
</form>
|
||||
|
||||
{% if query.sql %}
|
||||
{% if query.sql and config.allow_sql %}
|
||||
<p><a class="not-underlined" title="{{ query.sql }}" href="/{{ database }}-{{ database_hash }}?{{ {'sql': query.sql}|urlencode|safe }}{% if query.params %}&{{ query.params|urlencode|safe }}{% endif %}">✎ <span class="underlined">View and edit SQL</span></a></p>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue