summaryrefslogtreecommitdiff
path: root/cgi-bin/link.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/link.py')
-rwxr-xr-x[-rw-r--r--]cgi-bin/link.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index 2b870bb..334184a 100644..100755
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -73,6 +73,12 @@ class Link:
return "<a href=\""+self.href(target)+"\">"+link+"</a>"
else:
return "<span>"+link+"</span>"
+
+ def full(self, target, link):
+ if self.detect(target):
+ return "<a href=\"/img/"+target+"-full.jpeg\">"+link+"</a>"
+ else:
+ return "<span>"+link+"</span>"
def delta(self, delta):
date=os.path.split(self.img)