diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-21 13:36:35 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-21 13:36:35 +0100 |
commit | c4d7dd6f677be913f642579e8d1f8311889795fd (patch) | |
tree | 3e9387fb6628c236f9440f2b141a010364158c48 /web/lib | |
parent | 25e91a72ca533544ac344448e31f822af1f8ddd8 (diff) | |
download | taginfo-c4d7dd6f677be913f642579e8d1f8311889795fd.tar taginfo-c4d7dd6f677be913f642579e8d1f8311889795fd.tar.gz |
Tipsy and translation improvements
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/sources.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/web/lib/sources.rb b/web/lib/sources.rb index b616e28..539b7f8 100644 --- a/web/lib/sources.rb +++ b/web/lib/sources.rb @@ -49,18 +49,8 @@ class Source end # Returns img tag for this source - def img(size=16) - %Q{<img src="#{ imgurl(size) }" alt="#{ name }" title="#{ name }" width="#{ size }" height="#{ size }"/>} - end - - # Returns a link to this source - def link_img - %Q{<a href="#{ url }">#{ img }</a>} - end - - # Returns a link to this source - def link_name - %Q{<a href="#{ url }">#{ name }</a>} + def img(size=16, title_prefix='') + %Q{<img src="#{ imgurl(size) }" alt="#{ name }" title="#{title_prefix} #{ name }" tipsy="w" width="#{ size }" height="#{ size }"/>} end def dbname |