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/viewsjs | |
parent | b4cc49a9ee69abd30cffcbe6218a34807adcad32 (diff) | |
download | taginfo-95ac1effb1a4e642a361ba03a0cc30aa5a1514ed.tar taginfo-95ac1effb1a4e642a361ba03a0cc30aa5a1514ed.tar.gz |
Add width and height to img tags
Diffstat (limited to 'web/viewsjs')
-rw-r--r-- | web/viewsjs/reports/language_comparison_table_for_keys_in_the_wiki.js.erb | 2 | ||||
-rw-r--r-- | web/viewsjs/tag.js.erb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/web/viewsjs/reports/language_comparison_table_for_keys_in_the_wiki.js.erb b/web/viewsjs/reports/language_comparison_table_for_keys_in_the_wiki.js.erb index 002af8a..1ae7e5e 100644 --- a/web/viewsjs/reports/language_comparison_table_for_keys_in_the_wiki.js.erb +++ b/web/viewsjs/reports/language_comparison_table_for_keys_in_the_wiki.js.erb @@ -49,7 +49,7 @@ function page_init() { d = [link_to_key(row.key) <%= @languages.map{ ", ''"}.join() %>]; for (var lang in row.lang) { ptype = row.lang[lang]; - d[lang_to_idx[lang]] = '<img src="/img/sources/wiki/wiki-' + ptype + '.png" alt="[' + ptype + ']"/>'; + d[lang_to_idx[lang]] = '<img width="16" height="16" src="/img/sources/wiki/wiki-' + ptype + '.png" alt="[' + ptype + ']"/>'; } return { 'cell': d }; }) diff --git a/web/viewsjs/tag.js.erb b/web/viewsjs/tag.js.erb index 7b83255..d8337f4 100644 --- a/web/viewsjs/tag.js.erb +++ b/web/viewsjs/tag.js.erb @@ -78,10 +78,10 @@ var create_flexigrid_for = { print_wiki_link(row.title), row.description, row.image == '' ? empty('<%= misc.no_image %>') : hover_expand(print_wiki_link(row.image)), - (row.on_node ? '<img src="/img/types/node.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' + - (row.on_way ? '<img src="/img/types/way.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' + - (row.on_area ? '<img src="/img/types/area.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>') + ' ' + - (row.on_relation ? '<img src="/img/types/relation.16.png" alt="yes"/>' : '<img src="/img/types/none.16.png" alt="no"/>'), + (row.on_node ? '<img width="16" height="16" src="/img/types/node.16.png" alt="yes"/>' : '<img width="16" height="16" src="/img/types/none.16.png" alt="no"/>') + ' ' + + (row.on_way ? '<img width="16" height="16" src="/img/types/way.16.png" alt="yes"/>' : '<img width="16" height="16" src="/img/types/none.16.png" alt="no"/>') + ' ' + + (row.on_area ? '<img width="16" height="16" src="/img/types/area.16.png" alt="yes"/>' : '<img width="16" height="16" src="/img/types/none.16.png" alt="no"/>') + ' ' + + (row.on_relation ? '<img width="16" height="16" src="/img/types/relation.16.png" alt="yes"/>' : '<img width="16" height="16" src="/img/types/none.16.png" alt="no"/>'), print_key_or_tag_list(row.tags_implies), print_key_or_tag_list(row.tags_combination), print_key_or_tag_list(row.tags_linked) |