##// END OF EJS Templates
Show url as a tooltip of attachment
neko259 -
r2090:cfe3a188 default
parent child Browse files
Show More
@@ -80,7 +80,7 b' SVG_FORMAT_VIEW = \'<a class="thumb" href'
80 '<img class="post-image-preview" width="200" height="150" src="{}" />'\
80 '<img class="post-image-preview" width="200" height="150" src="{}" />'\
81 '</a>'
81 '</a>'
82 URL_FORMAT_VIEW = '<a href="{}">' \
82 URL_FORMAT_VIEW = '<a href="{}">' \
83 '<img class="url-image" src="{}" width="{}" height="{}"/>' \
83 '<img class="url-image" src="{}" width="{}" height="{}" title="{}" />' \
84 '</a>'
84 '</a>'
85
85
86
86
@@ -212,7 +212,7 b' class UrlViewer(AbstractViewer):'
212 image = static(image_path)
212 image = static(image_path)
213 w, h = self.get_static_dimensions(image_path)
213 w, h = self.get_static_dimensions(image_path)
214
214
215 return URL_FORMAT_VIEW.format(self.url, image, w, h)
215 return URL_FORMAT_VIEW.format(self.url, image, w, h, self.url)
216
216
217 def _find_image_for_domains(self, domain):
217 def _find_image_for_domains(self, domain):
218 """
218 """
General Comments 0
You need to be logged in to leave comments. Login now