From 6ce10a6b046cbe57d9a1660dba4b91da961f055c Mon Sep 17 00:00:00 2001 From: Ctibor Date: Thu, 23 Mar 2017 08:12:29 +0100 Subject: Display caption with date stamp under the image. --- cgi-bin/display.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cgi-bin/display.py') diff --git a/cgi-bin/display.py b/cgi-bin/display.py index d3a9e2d..826f1f1 100644 --- a/cgi-bin/display.py +++ b/cgi-bin/display.py @@ -1,5 +1,6 @@ # -*- coding: utf8 -*- import link, os, config +from datetime import datetime class Body: def __init__(self, site): @@ -28,12 +29,15 @@ class Body: print ("") print ("
") print (self.a.imglink(self.a.delta('+m'),'prev')) + print ("

"+self.a.caption(self.a.delta('+m'))+"

") print ("
") print ("
") print (self.a.imglink(self.a.img, 'now')) + print ("

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

") print ("
") print ("
") print (self.a.imglink(self.a.delta('-m'), 'next')) + print ("

"+self.a.caption(self.a.delta('-m'))+"

") print ("
") print ("