changeset 63:9301ca6f1e33

text_x_arnica: fixed missing album title
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 04 Jun 2008 19:24:51 +0200
parents 23b9e0024ede
children ea6139631185
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Jun 04 18:39:53 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Wed Jun 04 19:24:51 2008 +0200
@@ -330,12 +330,18 @@
 
     def mode1_html(self, idx):
         """ html code of mode 1 (default)"""
+        title = ""
+        if self.album:
+            title = "%(n)d images (%(album_name)s)" % {"n": len(self.full), "album_name": self.album_name}
+
         text = '''
     <table width="%(thumbnail_width)s" align="center" valign="center"%(style)s>
     <tr align="center" valign="center">
         <form action="%(baseurl)s/%(pagename)s" method="POST" enctype="multipart/form-data">
+
             <td align="center" valign="middle" width="%(thumbnail_width)s"
             %(tdstyle)s>
+                %(title)s
                 <input type="hidden" name="action" value="arnica_slides">
                 <input type="hidden" name="do" value="VS">
                 <input type="hidden" name="alias" value='%(description)s'>
@@ -351,6 +357,7 @@
       %(date_html)s
       %(tools_html)s
 </table>'''% {
+     "title": title,
      "tdstyle": self.td_style,
      "style": self.inner_table_style,
      "baseurl": self.request.getScriptname(),