Refactored filter logic and added human descriptions - refs #86

This commit is contained in:
Simon Willison 2017-11-19 22:03:24 -08:00
commit b4e6211a97
No known key found for this signature in database
GPG key ID: FBB38AFE227189DB
4 changed files with 108 additions and 50 deletions

View file

@ -21,6 +21,8 @@
<h2>{{ "{:,}".format(table_rows) }} total row{% if table_rows == 1 %}{% else %}s{% endif %} in this table</h2>
{% endif %}
<p>{{ human_filter_description }}</p>
{% 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>