# HG changeset patch # User neko259 # Date 2018-01-30 09:58:59 # Node ID cfe3a1880ba67a325cffb132308ac2554fb6b477 # Parent 676b38853222a9b519d960d5678684e37d63c1a2 Show url as a tooltip of attachment diff --git a/boards/models/attachment/viewers.py b/boards/models/attachment/viewers.py --- a/boards/models/attachment/viewers.py +++ b/boards/models/attachment/viewers.py @@ -80,7 +80,7 @@ SVG_FORMAT_VIEW = ''\ '' URL_FORMAT_VIEW = '' \ - '' \ + '' \ '' @@ -212,7 +212,7 @@ class UrlViewer(AbstractViewer): image = static(image_path) w, h = self.get_static_dimensions(image_path) - return URL_FORMAT_VIEW.format(self.url, image, w, h) + return URL_FORMAT_VIEW.format(self.url, image, w, h, self.url) def _find_image_for_domains(self, domain): """