diff data/plugin/macro/Image.py @ 308:81a4a9a1f497

macro.Image: div container for output of exif time added
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 27 Nov 2008 10:42:07 +0100
parents 3126b6ff38fa
children da0bb5e04a91
line wrap: on
line diff
--- a/data/plugin/macro/Image.py	Thu Nov 27 00:53:06 2008 +0100
+++ b/data/plugin/macro/Image.py	Thu Nov 27 10:42:07 2008 +0100
@@ -247,10 +247,12 @@
     if '/' not in itemname:
         itemname = macro.formatter.page.page_name + '/' + itemname
     img = Image(macro.request, itemname, caption=alt)
-    return "%s%s%s%s%s%s%s%s" % ('<div class="thumbnail">', 
-                                 macro.formatter.image(src=img.url((width, height)), alt=img.caption),
-                                 '<div class="decription">',
-                                 '<div style="width:%spx">' % (width),
-                                 macro.formatter.text(description),
-                                '</div>', '</div>', '</div>', )
+    return "%s%s%s%s%s%s%s%s%s%s%s" % ('<div class="thumbnail">', 
+                                     macro.formatter.image(src=img.url((width, height)), alt=img.caption),
+                                     '<div class="decription">',
+                                     '<div style="width:%spx">' % (width),
+                                     macro.formatter.text(description),
+                                     '<div class="html-show-date">',
+                                     macro.request.user.getFormattedDateTime(img.ctime),
+                                     '</div>', '</div>', '</div>', '</div>')