document template adjustments (#997)

This commit is contained in:
Frédéric Péters 2011-11-24 16:22:28 +01:00
parent b58586f2a4
commit db041f42da
1 changed files with 18 additions and 10 deletions

View File

@ -18,9 +18,23 @@
<h2 tal:content="context/Title">titre</h2>
<p tal:condition="context/file_image_id">
<a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}?action=browse">Consulter en ligne</a> - <a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}">Télécharger le document</a>
</p>
<div id="doc-browse" tal:condition="context/file_image_id">
<p>
<a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}?action=browse">Consulter ce document</a>
</p>
</div>
<div id="doc-download" tal:condition="context/file_image_id">
<p>
<a tal:attributes="href string:http://archive.pcf.be/${context/file_image_id}">Télécharger le document</a>
</p>
</div>
<div id="doc-show-dossier" tal:condition="python: context.parent_dossier and context.parent_dossier.to_object">
<p>
<a tal:attributes="href context/parent_dossier/to_object/absolute_url">Afficher le dossier</a>
</p>
</div>
<h3>Informations générales</h3>
@ -36,10 +50,6 @@
</ul></li>
</ul>
<div tal:condition="python: context.parent_dossier and context.parent_dossier.to_object">
<a tal:attributes="href context/parent_dossier/to_object/absolute_url">Afficher le dossier</a>
</div>
<div tal:define="docs context/associated_docs" tal:condition="docs">
<h3>Documents associés</h3>
<table id="associated-docs">
@ -52,7 +62,7 @@
</div>
<div tal:define="related_elements context/related_elements" tal:condition="related_elements">
<h3>Documents sémantiquement proches</h3>
<h3>Quelques documents sur les mêmes thèmes</h3>
<table id="related-elements">
<tr tal:repeat="item related_elements">
<td class="docref"><a tal:attributes="href item/getURL" tal:content="python: item.getObject().reftitle"></a></td>
@ -60,7 +70,6 @@
<td class="docdate"><span tal:replace="python: item.getObject().date_str"></span></td>
</tr>
</table>
<a tal:attributes="href view/related_search_url">Rechercher tous les documents proches</a>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
@ -70,4 +79,3 @@
</body>
</html>