aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-03-08 03:45:03 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-03-08 03:45:03 +0000
commita2f7331991f409dea73444d7f78b6bcc4d2ce222 (patch)
treef6f0bd9425d8beb13eb7af9180a7df40098fa50d /web
parentAdd John to AUTHORS. (diff)
downloadpackages-a2f7331991f409dea73444d7f78b6bcc4d2ce222.tar.gz
packages-a2f7331991f409dea73444d7f78b6bcc4d2ce222.tar.bz2
packages-a2f7331991f409dea73444d7f78b6bcc4d2ce222.zip
Bug #295336: rel=nofollow on homepage links.
Diffstat (limited to 'web')
-rw-r--r--web/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/model.py b/web/model.py
index f768092..8f549fc 100644
--- a/web/model.py
+++ b/web/model.py
@@ -562,13 +562,13 @@ class PackageDB(object):
homepages = pkg_metadata['homepage'].split()
if len(homepages) == 1:
url = homepages[0]
- l = '<a href="%s">%s</a>' % (url, 'Homepage')
+ l = '<a href="%s" rel="nofollow">%s</a>' % (url, 'Homepage')
pkg['homepage'].append(l)
else:
pkg['homepage'].append('Homepages:')
i = 1
for l in homepages:
- l = '<a href="%s">%s</a>' % (l, i)
+ l = '<a href="%s" rel="nofollow">%s</a>' % (l, i)
pkg['homepage'].append(l)
i += 1
pkg['homepage'] = ' '.join(pkg['homepage'])