Mercurial > hg > documentViewer
changeset 69:3b3c7cadd013
head_main works without year
author | casties |
---|---|
date | Tue, 22 Jul 2008 16:33:27 +0200 |
parents | b8457fc33446 |
children | 0049d64aa464 |
files | zpt/head_main.zpt |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/head_main.zpt Wed Jun 25 12:47:58 2008 +0200 +++ b/zpt/head_main.zpt Tue Jul 22 16:33:27 2008 +0200 @@ -1,7 +1,7 @@ <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode python:options.get('viewMode','images')"> <span tal:condition="not:exists:docinfo/author">(no bibliographical information)</span> <tal:y tal:condition="exists:docinfo/author"> - <b tal:content="docinfo/author"/>,<i tal:content="docinfo/title"/>,<i tal:content="docinfo/year"/> + <b tal:content="docinfo/author"/>,<i tal:content="docinfo/title"/><i tal:condition="exists:docinfo/year" tal:content="string:,${docinfo/year}"/> </tal:y> <tal:x tal:condition="python:viewMode=='text'"> <a target="_blank" tal:attributes="href string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}">view image</a>