From: Radek Czajka Date: Thu, 14 Feb 2013 14:23:43 +0000 (+0100) Subject: minor fixes X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/d6d07b7e85c360fe7ea047d3bc80b8769c90e660?ds=inline minor fixes --- diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index d36e0fe..d868a17 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -268,7 +268,7 @@ u"""%(wskazowki)s url = self.options['urlmapper'].url_for_image(slug, ext) thumb_url = self.options['urlmapper'].url_for_image(slug, ext, IMAGE_THUMB_WIDTH) e = etree.Element("a", attrib={"href": url, "class": "image"}) - e.append(etree.Element("img", attrib={"src": url, "alt": alt, + e.append(etree.Element("img", attrib={"src": thumb_url, "alt": alt, "width": str(IMAGE_THUMB_WIDTH)})) return etree.tostring(e, encoding=unicode), u"" @@ -277,7 +277,7 @@ u"""%(wskazowki)s if not url: print '!!