view zpt/feature/feature_template.zpt @ 244:dd667083a56d

added define-slot="head" to feature template.
author casties
date Wed, 12 Feb 2014 16:50:49 +0100
parents 670b3507509d
children
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 metal:define-slot="head"/>
</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 tal:condition="python:lang!='de'">Research Topics Archive</h2>
      <h2 tal:condition="python:lang=='de'">Archiv der Forschungsthemen</h2>

      <div class="item noline" tal:condition="python:lang!='de'">
        <a class="internal" tal:attributes="href string:$root/${secmap/news}/featurearchive.html">In the archive</a>
        you can find present and past research topics.
      </div>
      <div class="item noline" tal:condition="python:lang=='de'">
        <a class="internal" tal:attributes="href string:$root/${secmap/news}/featurearchive.html">Im Archiv</a> 
        finden Sie aktuelle und fr&uuml;here Forschungsthemen.
      </div>

      <tal:block define="features python:here.getFeatures(reverse=True)">
        <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><span tal:replace="python:len(features)-features.index(feature)" />:</b></a> 
              <span tal:content="feature/getFullTitle" />
            </div>
          </div>
        </div>
      </tal:block>

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

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