tabs -> spaces pour le code html.
authorBenoît Pin <benoit.pin@gmail.com>
Sun, 8 Dec 2013 20:27:25 +0000 (21:27 +0100)
committerBenoît Pin <benoit.pin@gmail.com>
Sun, 8 Dec 2013 20:27:25 +0000 (21:27 +0100)
skins/photo_theme/folder_contents_macros.pt

index b359ad3..042dfbc 100644 (file)
@@ -8,72 +8,72 @@
   </head>
 
   <body i18n:domain="cmf_default" metal:define-macro="FolderListing"
   </head>
 
   <body i18n:domain="cmf_default" metal:define-macro="FolderListing"
-                               tal:define="batch_dict options/batch;
-                                                                               batch batch_dict/batch_obj;
-                                                                               listColumnInfos batch_dict/listColumnInfos;
-                                                                               listItemInfos batch_dict/listItemInfos;"
-                               tal:omit-tag="">
+        tal:define="batch_dict options/batch;
+                    batch batch_dict/batch_obj;
+                    listColumnInfos batch_dict/listColumnInfos;
+                    listItemInfos batch_dict/listItemInfos;"
+        tal:omit-tag="">
     <div style="display:none">
       <span id="FolderUrl" tal:content="here/absolute_url" >Folder url for script</span>
       <span tal:condition="options/form/is_orderable" tal:omit-tag="">
     <div style="display:none">
       <span id="FolderUrl" tal:content="here/absolute_url" >Folder url for script</span>
       <span tal:condition="options/form/is_orderable" tal:omit-tag="">
-             <span id="FirstItemPos" tal:content="batch_dict/firstItemPos">first batch item position</span>
-             <span id="BatchNavigationSize" tal:content="batch/size"></span>
-           </span>
+        <span id="FirstItemPos" tal:content="batch_dict/firstItemPos">first batch item position</span>
+        <span id="BatchNavigationSize" tal:content="batch/size"></span>
+      </span>
     </div>
     </div>
-       <!-- batch navigation -->
+    <!-- batch navigation -->
     <div tal:define="navBatchBarId string:topNavBatchBar" tal:omit-tag="">
       <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
     </div>
     <table class="listing" cellspacing="0">
     <div tal:define="navBatchBarId string:topNavBatchBar" tal:omit-tag="">
       <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
     </div>
     <table class="listing" cellspacing="0">
-                       <thead id="FolderListingHeader">
-                               <tr>
-                                       <th tal:attributes="width column_info/width; colspan column_info/colspan" tal:repeat="column_info listColumnInfos" nowrap="nowrap" >
-                                               <a href="." tal:attributes="href column_info/url" tal:content="column_info/title" i18n:translate="">Type</a>
-                                               <span  tal:repeat="img column_info/images" tal:omit-tag="">
-                                                       <a tal:omit-tag="python:not img.has_key('href')"
-                                                                tal:attributes="href img/href|nothing ; title img/alt" i18n:attributes="title"
-                                                                ><img tal:attributes="src img/src ; alt img/alt ; id img/id|nothing" border="0" i18n:attributes="alt" /></a>
-                                               </span>
-                                       </th>
-                                       <td colspan="5" tal:replace="nothing"></td>
-                               </tr>
-                       </thead>
-                       <tbody id="FolderListingBody">
+      <thead id="FolderListingHeader">
+        <tr>
+          <th tal:attributes="width column_info/width; colspan column_info/colspan" tal:repeat="column_info listColumnInfos" nowrap="nowrap" >
+            <a href="." tal:attributes="href column_info/url" tal:content="column_info/title" i18n:translate="">Type</a>
+            <span  tal:repeat="img column_info/images" tal:omit-tag="">
+              <a tal:omit-tag="python:not img.has_key('href')"
+                 tal:attributes="href img/href|nothing ; title img/alt" i18n:attributes="title"
+                 ><img tal:attributes="src img/src ; alt img/alt ; id img/id|nothing" border="0" i18n:attributes="alt" /></a>
+            </span>
+          </th>
+          <td colspan="5" tal:replace="nothing"></td>
+        </tr>
+      </thead>
+      <tbody id="FolderListingBody">
 <tbody tal:repeat="item_info listItemInfos" tal:omit-tag="" metal:define-macro="itemListing">
 <tbody tal:repeat="item_info listItemInfos" tal:omit-tag="" metal:define-macro="itemListing">
-                   <tr class="" tal:attributes="class python: (even and 'even') or 'odd'" tal:define="even repeat/item_info/even">
-                     <td><img src="." alt="lock" height="16" width="16" border="0"
-                              tal:condition="python:not isAnon and item_info['lock']"
-                              tal:attributes="src here/lock.gif/absolute_url"
-                              i18n:attributes="alt" /></td>
-                     <td>
-                       <input id="" type="checkbox" name="ids:list" value=""
-                              tal:attributes="value item_info/id; id item_info/checkbox" tal:condition="item_info/checkbox" />
-                     </td>
-                     <td>
-                       <a href="." tal:attributes="href item_info/url" tal:condition="item_info/icon">
-                         <img src="." alt="" tal:attributes="src item_info/icon; alt item_info/type" border="0" i18n:attributes="alt" />
-                       </a>
-                     </td>
-                     <td>
-                       <a href="." tal:attributes="href item_info/url" tal:define="tod item_info/title_or_id; id item_info/id">
-                         <span tal:replace="id">id</span>
-                         <span tal:condition="python:tod != id">
-                           • <span tal:replace="tod">title</span>
-                         </span>
-                       </a>
-                     </td>
-                     <td>
-                       <span tal:replace="item_info/modified">2001</span>
-                     </td>
-                   </tr>
+        <tr class="" tal:attributes="class python: (even and 'even') or 'odd'" tal:define="even repeat/item_info/even">
+          <td><img src="." alt="lock" height="16" width="16" border="0"
+                   tal:condition="python:not isAnon and item_info['lock']"
+                   tal:attributes="src here/lock.gif/absolute_url"
+                   i18n:attributes="alt" /></td>
+          <td>
+            <input id="" type="checkbox" name="ids:list" value=""
+                   tal:attributes="value item_info/id; id item_info/checkbox" tal:condition="item_info/checkbox" />
+          </td>
+          <td>
+            <a href="." tal:attributes="href item_info/url" tal:condition="item_info/icon">
+              <img src="." alt="" tal:attributes="src item_info/icon; alt item_info/type" border="0" i18n:attributes="alt" />
+            </a>
+          </td>
+          <td>
+            <a href="." tal:attributes="href item_info/url" tal:define="tod item_info/title_or_id; id item_info/id">
+              <span tal:replace="id">id</span>
+              <span tal:condition="python:tod != id">
+                • <span tal:replace="tod">title</span>
+              </span>
+            </a>
+          </td>
+          <td>
+            <span tal:replace="item_info/modified">2001</span>
+          </td>
+        </tr>
 </tbody>
 </tbody>
-               </tbody>
+      </tbody>
     </table>
     <!-- batch navigation -->
     <div tal:define="navBatchBarId string:bottomNavBatchBar" tal:omit-tag="">
       <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
     </div>
     </table>
     <!-- batch navigation -->
     <div tal:define="navBatchBarId string:bottomNavBatchBar" tal:omit-tag="">
       <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
     </div>
-               <script type="text/javascript">
+    <script type="text/javascript">
                (function(){
                        // variables for drag-and-drop ordered support
                        var ddEnabled = false
                (function(){
                        // variables for drag-and-drop ordered support
                        var ddEnabled = false
       new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
 
                }());
       new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
 
                }());
-               </script>
+    </script>
   </body>
 
 </html>
\ No newline at end of file
   </body>
 
 </html>
\ No newline at end of file