From 11340cccc2743c519f8625843e9cf631e83e5ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Tue, 25 Apr 2017 19:36:57 +0200 Subject: Add link to full size image. --- cgi-bin/config.py | 0 cgi-bin/display.py | 1 + cgi-bin/link.py | 6 ++++++ 3 files changed, 7 insertions(+) mode change 100644 => 100755 cgi-bin/config.py mode change 100644 => 100755 cgi-bin/display.py mode change 100644 => 100755 cgi-bin/link.py diff --git a/cgi-bin/config.py b/cgi-bin/config.py old mode 100644 new mode 100755 diff --git a/cgi-bin/display.py b/cgi-bin/display.py old mode 100644 new mode 100755 index 72d2589..e20f9d9 --- a/cgi-bin/display.py +++ b/cgi-bin/display.py @@ -35,6 +35,7 @@ class Body: print ("
") print (self.a.imglink(self.a.img, '440', 'now')) print ("

"+self.a.timestamp(self.a.img)+"

") + print ("

"+self.a.full(self.a.img, 'plná velikost')+"

") print ("
") print ("
") print (self.a.imglink(self.a.delta('-m'), '180', 'next')) diff --git a/cgi-bin/link.py b/cgi-bin/link.py old mode 100644 new mode 100755 index 2b870bb..334184a --- a/cgi-bin/link.py +++ b/cgi-bin/link.py @@ -71,6 +71,12 @@ class Link: #print target if self.detect(target): return ""+link+"" + else: + return ""+link+"" + + def full(self, target, link): + if self.detect(target): + return ""+link+"" else: return ""+link+"" -- cgit v1.2.3