Mercurial > hg > ltpdarepo
diff src/ltpdarepo/templates/query.html @ 108:f075650d3e1d
Disable "save query" button in timeseries search view.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Tue, 23 Aug 2011 19:11:25 +0200 |
parents | 22b950fee548 |
children | 5af343faf647 |
line wrap: on
line diff
--- a/src/ltpdarepo/templates/query.html Tue Aug 23 18:04:12 2011 +0200 +++ b/src/ltpdarepo/templates/query.html Tue Aug 23 19:11:25 2011 +0200 @@ -80,7 +80,7 @@ <input type="submit" value="search" /> - {% if 'admin' in g.identity.roles %} + {% if 'query' in request.endpoint and 'admin' in g.identity.roles %} <input id="save" type="submit" name="save" value="save query" /> {% endif %}