view zpt/feature/feature_template.zpt @ 176:ca6e3873107c

fixed footer
author casties
date Tue, 11 Jun 2013 14:43:11 +0200
parents 63e1c1c06fb3
children 670b3507509d
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<metal:block metal:define-macro="page">
  <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/page">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta:block metal:fill-slot="title">
<title tal:content="here/getFullTitle"></title>
</meta:block>
<metal:block metal:fill-slot="head">
  <meta name="description" content="feature"/> 
</metal:block>
</head>
<body>
  <div class="center" metal:fill-slot="center">
    <metal:block metal:define-slot="feature">
      (the latest feature should be here)
      </metal:block>
  </div>
  <!-- center -->

  <div class="sidebar" metal:fill-slot="sidebar">

    <tal:block metal:define-slot="sideblock" />

    <div class="sideblock">
      <h2>Research Topics Archive</h2>

      <div class="item noline" tal:condition="python:lang!='de'">
        <b>In this archive</b> you can find present and past research topics.
      </div>
      <div class="item noline" tal:condition="python:lang=='de'">
        <b>In diesem Archiv</b> finden Sie aktuelle und fr&uuml;here Forschungsthemen.
      </div>

      <tal:block define="features python:here.getFeatures()">
        <tal:block define="dummy python:features.reverse()">
          <!-- workaround for inverting the order of the elements -->

          <div class="item thumb" tal:repeat="feature python:features">
            <div class="row" tal:define="url python:feature.getUrl(baseUrl='%s/%s/features'%(root,secmap['news']))">
              <div class="col thumb">
                <a tal:attributes="href url"> 
                  <img tal:attributes="src feature/getThumbUrl" />
                </a>
              </div>
              <div class="col text">
                <a tal:attributes="href url">
                  <b>Feature <span tal:replace="python: len(features)-features.index(feature)" />:</b>
                </a> 
                <span tal:content="feature/getFullTitle"/>
              </div>
            </div>
          </div>

        </tal:block>
      </tal:block>

    </div>
    <!-- /sideblock -->


  </div>
  <!-- sidebar -->
</body>
  </html>
</metal:block>