summaryrefslogtreecommitdiff
path: root/web/views/key.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-15 09:04:48 +0200
committerJochen Topf <jochen@topf.org>2014-05-15 09:04:48 +0200
commit6cb9e2de145ebfc8a3caad377cd40780823d1ad2 (patch)
tree0cf096dfcdcae4c360f3d23a23fe930955bc63ea /web/views/key.erb
parent2b0703de9606fb40aa437b7e962bd09a2e4783b0 (diff)
downloadtaginfo-6cb9e2de145ebfc8a3caad377cd40780823d1ad2.tar
taginfo-6cb9e2de145ebfc8a3caad377cd40780823d1ad2.tar.gz
Use different overpass turbo call when numbers of objects is small.
When there aren't too many objects with a given key or tag, use the new wizard interface of overpass turbo, which runs automatically in global context and automatically zooms to the results. This is much nicer and easier. If there are too many objects, we keep the old behaviour. Unfortunately this is rather confusing. Maybe we can figure out something better...
Diffstat (limited to 'web/views/key.erb')
-rw-r--r--web/views/key.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/views/key.erb b/web/views/key.erb
index a4a415a..d168aa4 100644
--- a/web/views/key.erb
+++ b/web/views/key.erb
@@ -20,7 +20,7 @@
<% else %>
<span class="button disabled" title="<%= h(t.pages.key.button_disabled) %>">Level0 Editor</span>
<% end %>
- <%= turbo_link(@filter_type, @key) %>
+ <%= turbo_link(@count_all_values, @filter_type, @key) %>
</div>
<h1></h1>
<p><%= @desc %></p>