view montage/templates/strip.html @ 4:75b19560f517

make the hr only as big as the picture
author k0s <k0scist@gmail.com>
date Fri, 25 Dec 2009 04:21:30 -0500
parents 75a57e8f72d4
children d60a5ffbf4f4
line wrap: on
line source

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      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.get('title', image['description'])}
      </div>
      <hr width="${width}px" py:if="index != len(files) - 1"/>
    </py:for>
  </body>
</html>