Show links to Launchpad package pages in excuses.

bzr-import-20160707
Colin Watson 12 years ago
parent 59705dda61
commit 24d57f4f89

@ -121,8 +121,13 @@ class Excuse(object):
def html(self):
"""Render the excuse in HTML"""
res = "<a id=\"%s\" name=\"%s\">%s</a> (%s to %s)\n<ul>\n" % \
(self.name, self.name, self.name, self.ver[0], self.ver[1])
lp_pkg = "https://launchpad.net/ubuntu/+source/%s" % self.name
res = (
"<a id=\"%s\" name=\"%s\" href=\"%s\">%s</a> "
"(<a href=\"%s/%s\">%s</a> to <a href=\"%s/%s\">%s</a>)\n<ul>\n" %
(self.name, self.name, lp_pkg, self.name,
lp_pkg, self.ver[0], self.ver[0],
lp_pkg, self.ver[1], self.ver[1]))
if self.maint:
res = res + "<li>Maintainer: %s\n" % (self.maint)
if self.section and string.find(self.section, "/") > -1:

Loading…
Cancel
Save