aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rcynic/rcynic-html.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/rcynic/rcynic-html.py b/rcynic/rcynic-html.py
index f4b11ca6..c165d652 100644
--- a/rcynic/rcynic-html.py
+++ b/rcynic/rcynic-html.py
@@ -360,25 +360,7 @@ class Host(Problem_Mixin):
html.BodyElement("br")
svg_html = HTML("%s over last %s" % (self.hostname, period),
"%s_%s_svg" % (self.hostname, period))
- #
- # In theory, we could edit the SVG here to insert an <a/>
- # element just inside the <svg/> element, causing the entire SVG
- # image to be a link to wherever we want it to go. Don't bother
- # until we have a use for such a link, but, references:
- #
- # http://www.w3.org/TR/SVG/linking.html#Links
- # http://lxml.de/tutorial.html#elements-are-lists
- #
- # So code would look something like:
- #
- # svg = ElementTree(...).getroot()
- # a = Element("{http://www.w3.org/2000/svg}a",
- # { "{http://www.w3.org/1999/xlink}href" : url })
- # a.extend(svg[:])
- # del svg[:]
- # svg.append(a)
- #
- svg_html.body.append(ElementTree(file = "%s_%s.svg" % (filebase, period)).getroot())
+ svg_html.BodyElement("img", src = "%s_%s.svg" % (self.hostname, period))
svg_html.close()