diff options
author | Jochen Topf <jochen@topf.org> | 2012-02-25 15:43:23 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-02-25 15:43:23 +0100 |
commit | 88e1bb9f642048d6c8375751369cc62d34ac832d (patch) | |
tree | f39fcaa1e0fe86dfc1773ce2c38192e3c3c34352 /web/views | |
parent | ae678011030890b556d4f50814d3d8cbb8656f77 (diff) | |
download | taginfo-88e1bb9f642048d6c8375751369cc62d34ac832d.tar taginfo-88e1bb9f642048d6c8375751369cc62d34ac832d.tar.gz |
Make XAPI/JOSM button use filter setting
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/key.erb | 16 | ||||
-rw-r--r-- | web/views/tag.erb | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/web/views/key.erb b/web/views/key.erb index e8ed724..175e72c 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -1,12 +1,4 @@ <div class="pre"> - <div id="tools" class="no-print"> - <% if @count_all_values < 1000 %> - <%= xapi_link('*', @key) %> <%= josm_link('*', @key) %> - <% else %> - <span class="button disabled" title="Button disabled, because there are too many objects with this key">XAPI</span> - <span class="button disabled" title="Button disabled, because there are too many objects with this key">JOSM</span> - <% end %> - </div> <form id="filter-form"> <label for="filter"><%= t.pages.key.filter.label %></label> <select id="filter" name="filter"> @@ -16,6 +8,14 @@ <option value="relations"<%= @sel['relations'] %>><%= t.pages.key.filter.relations %></option> </select> </form> + <div id="tools" class="no-print"> + <% if @count_all_values < 1000 %> + <%= xapi_link(@filter_xapi, @key) %> <%= josm_link(@filter_xapi, @key) %> + <% else %> + <span class="button disabled" title="Button disabled, because there are too many objects with this key">XAPI</span> + <span class="button disabled" title="Button disabled, because there are too many objects with this key">JOSM</span> + <% end %> + </div> <h1><%= @key_pp %></h1> <p><%= @desc %></p> </div> diff --git a/web/views/tag.erb b/web/views/tag.erb index 4582606..c8c4f2a 100644 --- a/web/views/tag.erb +++ b/web/views/tag.erb @@ -1,12 +1,4 @@ <div class="pre"> - <div id="tools"> - <% if @count_all < 1000 %> - <%= xapi_link('*', @key, @value) %> <%= josm_link('*', @key, @value) %> - <% else %> - <span class="button disabled" title="Button disabled, because there are too many objects with this key">XAPI</span> - <span class="button disabled" title="Button disabled, because there are too many objects with this key">JOSM</span> - <% end %> - </div> <form id="filter-form"> <label for="filter"><%= t.pages.key.filter.label %></label> <select id="filter" name="filter"> @@ -16,6 +8,14 @@ <option value="relations"<%= @sel['relations'] %>><%= t.pages.key.filter.relations %></option> </select> </form> + <div id="tools"> + <% if @count_all < 1000 %> + <%= xapi_link(@filter_xapi, @key, @value) %> <%= josm_link(@filter_xapi, @key, @value) %> + <% else %> + <span class="button disabled" title="Button disabled, because there are too many objects with this key">XAPI</span> + <span class="button disabled" title="Button disabled, because there are too many objects with this key">JOSM</span> + <% end %> + </div> <h1><%= link_to_key(@key) %>=<%= @value_pp %></h1> <p><%= @desc %></p> </div> |