diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-25 15:40:10 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-25 15:40:10 +0100 |
commit | 95ac1effb1a4e642a361ba03a0cc30aa5a1514ed (patch) | |
tree | 136945d787f9284f3fe85e0da498d29e8a038efd /web/lib | |
parent | b4cc49a9ee69abd30cffcbe6218a34807adcad32 (diff) | |
download | taginfo-95ac1effb1a4e642a361ba03a0cc30aa5a1514ed.tar taginfo-95ac1effb1a4e642a361ba03a0cc30aa5a1514ed.tar.gz |
Add width and height to img tags
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/ui/keys_tags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/ui/keys_tags.rb b/web/lib/ui/keys_tags.rb index f0a233d..01f17d9 100644 --- a/web/lib/ui/keys_tags.rb +++ b/web/lib/ui/keys_tags.rb @@ -48,7 +48,7 @@ class Taginfo < Sinatra::Base (@merkaartor_type, @merkaartor_link, @merkaartor_selector) = @db.select('SELECT tag_type, link, selector FROM merkaartor.keys').condition('key=?', @key).get_columns(:tag_type, :link, :selector) @merkaartor_images = [:node, :way, :area, :relation].map{ |type| name = type.to_s.capitalize - '<img src="/img/types/' + (@merkaartor_selector =~ /Type is #{name}/ ? type.to_s : 'none') + '.16.png" alt="' + name + '" title="' + name + '"/>' + '<img src="/img/types/' + (@merkaartor_selector =~ /Type is #{name}/ ? type.to_s : 'none') + '.16.png" width="16" height="16" alt="' + name + '" title="' + name + '"/>' }.join(' ') @merkaartor_values = @db.select('SELECT value FROM merkaartor.tags').condition('key=?', @key).order_by(:value).execute().map{ |row| row['value'] } |