Mercurial > hg > documentViewer
diff zpt/viewer/common_template.zpt @ 608:0c6056271654
show is-part-of relation in header.
author | casties |
---|---|
date | Tue, 18 Dec 2012 19:26:22 +0100 |
parents | cb5a9c4f5e3a |
children | 7962e6891d99 |
line wrap: on
line diff
--- a/zpt/viewer/common_template.zpt Fri Dec 14 17:28:31 2012 -0500 +++ b/zpt/viewer/common_template.zpt Tue Dec 18 19:26:22 2012 +0100 @@ -24,6 +24,9 @@ tal:content="string:[no bibliographical information for this document (type ${bibType})]" /> </div> <div class="title" tal:condition="formattedLabel" tal:content="structure formattedLabel" /> + <div class="title part-of" tal:condition="exists:docinfo/partOfPath"> + part of: <a tal:attributes="href docinfo/partOfUrl" target="_blank" tal:content="structure docinfo/partOfLabel"/> + </div> <ul class="view-switcher" metal:define-slot="view-switcher"> <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li>