view montage/templates/background.html @ 40:77c3439e76bb default tip

py3
author Jeff Hammel <k0scist@gmail.com>
date Wed, 25 Nov 2020 11:00:17 -0800
parents 5a3945882d04
children
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 py:with="background = request.GET.get('image', files[0]['link'])">
    <xi:include href="head.html"/>
    <style type="text/css">
      body {
           background-image: url('${background}');
           background-repeat:no-repeat;
           background-position: right;
           background-attachment: fixed;
           background-size: 100% 100%;
      }
    </style>
  </head>
  <body>
    <xi:include py:if="include" href="${include}"/>

    <div class="strip">
    <py:for each="index, image in enumerate(files)">
      <div class="image">
        <a name="${image['name']}"></a>
        <a href="${'?image=' + image['name']}#${image['name']}">
          <img src="${image['path']}" width="${width or None}" height="${height or None}"/>
        </a>
        <br/>
        ${image.get('title', image['description'])}
      </div>
    </py:for>
    </div> <!-- strip -->

  </body>
</html>