summaryrefslogtreecommitdiff
path: root/cgi-bin/link.py
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2017-03-27 19:56:57 +0200
committerCtibor Brančík <ctibor@brancik.cz>2017-03-27 19:56:57 +0200
commit46042b87fe25becff22b5ecfb9ab34d14401acaf (patch)
tree694c2a2d6e5ded2173ec24bd04e4a1f60605bb42 /cgi-bin/link.py
parent5012cffd029922f2d9e52daec181fb640f27c9b7 (diff)
downloadhnizdo-46042b87fe25becff22b5ecfb9ab34d14401acaf.tar.gz
hnizdo-46042b87fe25becff22b5ecfb9ab34d14401acaf.tar.bz2
Generate links even for images, that do not exist fo easier navigation.
Diffstat (limited to 'cgi-bin/link.py')
-rw-r--r--cgi-bin/link.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index 3b4baf5..04d91a0 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -28,10 +28,7 @@ class Link:
cssclass="class=\""+order+"\""
else:
cssclass=""
- if self.detect(target):
- return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"
- else:
- return "<img src=\""+self.src(target)+"\" "+cssclass+"\"/>"
+ return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"
def timestamp(self, date):
if self.detect(date):