summaryrefslogtreecommitdiff
path: root/web/views/relation.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 18:08:32 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 18:08:32 +0100
commitc5428074f4380471e2da6f17c6f7a2375f262bca (patch)
tree4a57f7662e46234fa926c3e2ebefe09c9d538c81 /web/views/relation.erb
parentb17a29ca705f07c294f5dc34396f59420f008d1b (diff)
downloadtaginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar
taginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar.gz
Add XAPI and JOSM buttons to relations page
Diffstat (limited to 'web/views/relation.erb')
-rw-r--r--web/views/relation.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/views/relation.erb b/web/views/relation.erb
index bf0044b..d1aea0d 100644
--- a/web/views/relation.erb
+++ b/web/views/relation.erb
@@ -1,4 +1,12 @@
<div class="pre">
+ <div id="tools" class="no-print">
+ <% if @count_all_values < TaginfoConfig.get('xapi.max_results', 1000) %>
+ <%= xapi_link('relation', 'type', @rtype) %> <%= josm_link('relation', 'type', @rtype) %>
+ <% 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></h1>
<p><%= @desc %></p>
</div>
@@ -23,6 +31,7 @@
<% end %>
</div>
</div>
+<iframe id="josmiframe" name="josmiframe"></iframe>
<% javascript do
JS.raw(<<"JAVASCRIPT")
function page_init2() {