]> CRI, Mines Paris - PSL - Plinn.git/commitdiff
Écrire du HTML n'est pas une maladie honteuse.
authorBenoît Pin <pin@cri.ensmp.fr>
Wed, 1 Oct 2014 12:11:51 +0000 (14:11 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Wed, 1 Oct 2014 12:11:51 +0000 (14:11 +0200)
skins/custom_content/document_view.pt

index 7f95af7da8d60c9811953318df1743e939c011a9..a77a35a09cd749cc551feeb54cd415cd6bc98b70 100755 (executable)
@@ -7,7 +7,8 @@
 <body>
 
 <div metal:fill-slot="main" tal:omit-tag="">
-  <div tal:replace="structure here/CookedBody">Cooked Body</div>
+  <div tal:condition="python:here.Format() == 'text/html'" tal:replace="structure here/EditableBody">Editable Body</div>
+  <div tal:condition="python:here.Format() != 'text/html'" tal:replace="structure here/CookedBody">Cooked Body</div>
 </div>
 
 </body>