diff --git a/excuse.py b/excuse.py
index 4998881..a44db68 100644
--- a/excuse.py
+++ b/excuse.py
@@ -159,8 +159,20 @@ class Excuse(object):
def html(self):
"""Render the excuse in HTML"""
- res = "%s (%s to %s)\n
\n" % \
- (self.name, self.name, self.name, self.ver[0], self.ver[1])
+ lp_pkg = "https://launchpad.net/%s/+source/%s" % (self.distribution, self.name.split("/")[0])
+ if self.ver[0] == "-":
+ lp_old = self.ver[0]
+ else:
+ lp_old = "%s" % (
+ lp_pkg, self.ver[0], self.ver[0])
+ if self.ver[1] == "-":
+ lp_new = self.ver[1]
+ else:
+ lp_new = "%s" % (
+ lp_pkg, self.ver[1], self.ver[1])
+ res = (
+ "%s (%s to %s)\n\n" %
+ (self.name, self.name, lp_pkg, self.name, lp_old, lp_new))
if self.maint:
res = res + "- Maintainer: %s\n" % (self.maint)
if self.section and self.section.find("/") > -1: