Mercurial > hg > montage
changeset 32:4a81659a17f7
formatting
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 30 Mar 2014 14:18:51 -0700 |
parents | d98c9e7415c3 |
children | 87ce035dd4a0 |
files | montage/templates/sequence.html |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/montage/templates/sequence.html Tue Aug 28 22:03:34 2012 -0700 +++ b/montage/templates/sequence.html Sun Mar 30 14:18:51 2014 -0700 @@ -6,6 +6,10 @@ xmlns:xi="http://www.w3.org/2001/XInclude"> <head> <xi:include href="head.html"/> + <style> + .spacer { + width: 3em; + } </head> <body> <xi:include py:if="include" href="${include}"/> @@ -14,16 +18,20 @@ <div py:if="index in range(len(files))" py:with="image = files[index]" class="image"> <a name="${image['path']}"></a> <a href="${image['link']}"> - <img src="${image['path']}" width="${width or None}" height="${height or None}"/> + <img src="${image['path']}" width="${width or None}" height="${height or None}" title="${image.get('title', image[description])}"/> </a> <br/> - ${image.get('title', image['description'])} + <p py:if="${image.get('title', None)"> + <i>${image.get('title', '')</i> + </p> + ${image['description'])} </div> <py:if test="(index - 1) in range(len(files))"> <a href="?index=${index - 1}" py:with="image=files[index - 1]"> ${image.get('title') or image.get('description') or '««'} </a> </py:if> + <span class="spacer"></span> <py:if test="(index + 1) in range(len(files))"> <a href="?index=${index + 1}" py:with="image=files[index + 1]"> ${image.get('title') or image.get('description') or '»»'}