From: Benoît Pin <pin@cri.ensmp.fr>
Date: Wed, 1 Oct 2014 12:11:51 +0000 (+0200)
Subject: Écrire du HTML n'est pas une maladie honteuse.
X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/f1ca43660dc87bfce8b9838102dac0c10f4d5d31

Écrire du HTML n'est pas une maladie honteuse.
---

diff --git a/skins/custom_content/document_view.pt b/skins/custom_content/document_view.pt
index 7f95af7..a77a35a 100755
--- a/skins/custom_content/document_view.pt
+++ b/skins/custom_content/document_view.pt
@@ -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>