Mercurial > hg > MPIWGWeb
comparison zpt/www/common_template.zpt @ 31:b12d80f033fb
fix feature story number (one-based now).
author | casties |
---|---|
date | Tue, 23 Apr 2013 18:22:27 +0200 |
parents | 8a99ad8713d6 |
children | ab836d3f96dc |
comparison
equal
deleted
inserted
replaced
30:aa4ab114c28a | 31:b12d80f033fb |
---|---|
8 <!-- common template snippets as METAL macros --> | 8 <!-- common template snippets as METAL macros --> |
9 | 9 |
10 <!-- full-row feature block --> | 10 <!-- full-row feature block --> |
11 <div class="row teaser" metal:define-macro="feature_teaser" | 11 <div class="row teaser" metal:define-macro="feature_teaser" |
12 tal:define="features python:here.getFeatures(); | 12 tal:define="features python:here.getFeatures(); |
13 feature_num python:int(request.get('ff',len(features)-1)); | 13 feature_num python:int(request.get('ff',len(features))); |
14 feature python:features[feature_num]; | 14 feature python:features[feature_num-1]; |
15 feature_url python:feature.getUrl('%s/%s/features'%(root,secmap['news'])); | 15 feature_url python:feature.getUrl('%s/%s/features'%(root,secmap['news'])); |
16 teaser_path string:here/features/${feature/getTeaserPath};"> | 16 teaser_path string:here/features/${feature/getTeaserPath};"> |
17 <!-- feature image and intro --> | 17 <!-- feature image and intro --> |
18 <div class="col"> | 18 <div class="col"> |
19 <div class="box teaser_image"> | 19 <div class="box teaser_image"> |