Mercurial > hg > MPIWGWeb
changeset 256:aea2e316287f new_pro_struct
subproject slider, first version.
author | casties |
---|---|
date | Mon, 04 Aug 2014 19:39:17 +0200 |
parents | cc7517f08d9e |
children | 7288e7729960 |
files | zpt/project/project_index_html.zpt |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/project/project_index_html.zpt Fri Aug 01 18:23:20 2014 +0200 +++ b/zpt/project/project_index_html.zpt Mon Aug 04 19:39:17 2014 +0200 @@ -64,6 +64,29 @@ <div tal:content="structure python:here.getDescription(filter=True)">Project description</div> </div> + <!-- sub-project thumbs --> + <div tal:define="projects python:here.getSubProjects();" + tal:attributes="class python:test(len(projects)>5, 'ajaxSlider', None);"> + <h2>Subprojects</h2> + <div class="row quintuple"> + <div class="col" tal:repeat="project python:projects[:5]"> + <div class="mini project" tal:define="url python:project.getUrl(baseUrl=proBaseUrl)"> + <div class="thumb"> + <a tal:attributes="href url"><img + tal:attributes="src python:project.getThumbUrl(default=root+'/images/dummy_thumb.jpg')"/></a> + </div> + <div class="title"> + <a tal:attributes="href url" tal:content="project/getLabel"> + Mental Models in the History of Knowledge + </a> + </div> + <div class="author" tal:content="python:project.getContent('xdata_01')"> + Matteo Valleriani, Jürgen Renn + </div> + </div> + </div> + </div><!-- /row --> + </div><!-- /item --> </div><!-- /center --> <!-- right column -->