diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-18 18:08:32 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-18 18:08:32 +0100 |
commit | c5428074f4380471e2da6f17c6f7a2375f262bca (patch) | |
tree | 4a57f7662e46234fa926c3e2ebefe09c9d538c81 /web/lib/ui | |
parent | b17a29ca705f07c294f5dc34396f59420f008d1b (diff) | |
download | taginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar taginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar.gz |
Add XAPI and JOSM buttons to relations page
Diffstat (limited to 'web/lib/ui')
-rw-r--r-- | web/lib/ui/relation.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/ui/relation.rb b/web/lib/ui/relation.rb index e55d02b..1e1fe71 100644 --- a/web/lib/ui/relation.rb +++ b/web/lib/ui/relation.rb @@ -11,6 +11,8 @@ class Taginfo < Sinatra::Base @title = [escape_html(@rtype), t.osm.relations] section :relations + @count_all_values = @db.select("SELECT count_relations FROM db.keys").condition('key = ?', @rtype).get_first_value().to_i + @desc = h(@db.select("SELECT description FROM wiki.relation_pages WHERE lang=? AND rtype=?", r18n.locale.code, @rtype).get_first_value()) @desc = h(@db.select("SELECT description FROM wiki.relation_pages WHERE lang='en' AND rtype=?", @rtype).get_first_value()) if @desc == '' if @desc == '' |