diff options
author | Jochen Topf <jochen@topf.org> | 2011-10-26 10:54:35 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2011-10-26 10:54:35 +0200 |
commit | 4c5b5e2ebb156569a1ac8071b208d318de264fa6 (patch) | |
tree | 10fe483aa2b43f8731e9e149d082e84f9cf0770b /web | |
parent | 2132d1c6d0199a8dc8b4d7a13e1bbb327a1fe1b3 (diff) | |
download | taginfo-4c5b5e2ebb156569a1ac8071b208d318de264fa6.tar taginfo-4c5b5e2ebb156569a1ac8071b208d318de264fa6.tar.gz |
add rel=nofollow to external and download links
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/sources.rb | 2 | ||||
-rw-r--r-- | web/lib/utils.rb | 2 | ||||
-rw-r--r-- | web/views/apidoc.erb | 2 | ||||
-rw-r--r-- | web/views/download.erb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/web/lib/sources.rb b/web/lib/sources.rb index b32d0f5..9870549 100644 --- a/web/lib/sources.rb +++ b/web/lib/sources.rb @@ -68,7 +68,7 @@ class Source end def link_download - %Q{<a href="/download/#{ dbname }.bz2">#{ dbname }.bz2</a>} + %Q{<a rel="nofollow" href="/download/#{ dbname }.bz2">#{ dbname }.bz2</a>} end end diff --git a/web/lib/utils.rb b/web/lib/utils.rb index 2d9fd94..b72cdef 100644 --- a/web/lib/utils.rb +++ b/web/lib/utils.rb @@ -70,7 +70,7 @@ def josm_link(element, key, value=nil) end def external_link(id, title, link) - %Q{<img src="/img/link-extern.gif" alt="" width="14" height="10"/><a id="#{id}" class="extlink" href="#{link}">#{title}</a>} + %Q{<img src="/img/link-extern.gif" rel="nofollow" alt="" width="14" height="10"/><a id="#{id}" class="extlink" href="#{link}">#{title}</a>} end def tagcloud_size(tag) diff --git a/web/views/apidoc.erb b/web/views/apidoc.erb index eba995a..d1cf6c7 100644 --- a/web/views/apidoc.erb +++ b/web/views/apidoc.erb @@ -53,7 +53,7 @@ </tr> <tr> <th>Example:</th> - <td><a href="<%= doc.show_example %>" target="_blank"><%= doc.show_example %></a></td> + <td><a rel="nofollow" href="<%= doc.show_example %>" target="_blank"><%= doc.show_example %></a></td> </tr> <tr> <th title="User interface page where this API is used">UI Example:</th> diff --git a/web/views/download.erb b/web/views/download.erb index b50fa87..9645a53 100644 --- a/web/views/download.erb +++ b/web/views/download.erb @@ -16,7 +16,7 @@ <% end %> <tr><td class="border"></td> <td style="text-align: center;"><img src="/img/taginfo.32.png" alt="Taginfo" width="32" height="16"/></td> - <td><a href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td> + <td><a rel="nofollow" href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td> <td style="text-align: right;"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> <td style="text-align: right;"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> <td><%= t.sources.master.description %></td> |