changeset 3:75a57e8f72d4

add logic for titles (admittedly, not wonderful logic)
author k0s <k0scist@gmail.com>
date Fri, 25 Dec 2009 04:08:40 -0500
parents 4b8aa9b0a45b
children 75b19560f517
files montage/templates/strip.html
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/montage/templates/strip.html	Fri Dec 25 03:59:26 2009 -0500
+++ b/montage/templates/strip.html	Fri Dec 25 04:08:40 2009 -0500
@@ -5,12 +5,13 @@
       xmlns:py="http://genshi.edgewall.org/"
       xmlns:xi="http://www.w3.org/2001/XInclude">
   <head>
+    <title>${title or path}</title>
   </head>
   <body>
     <py:for each="index, image in enumerate(files)">
       <div>
         <img src="${image['path']}" width="${width or None}" height="${height or None}"/><br/>
-        ${image['description']}
+        ${image.get('title', image['description'])}
       </div>
       <hr py:if="index != len(files) - 1"/>
     </py:for>