Utilisation des png24 (et apng) pour l'affichage des boutons de déploiement de l...
[MosaicDocument.git] / default_blocks / tree_block_template.pt
index 606d136..d5b3842 100755 (executable)
@@ -41,7 +41,7 @@
                      rows       treeDict/rows;
                      height                    tree/height;
                      rootNode   python:rows.pop(0);
-                     box_id     rootNode/id;
+                     box_id     tree/tree_pre;
                      portal_url here/portal_url"
          tal:condition="python:displayAction=='view' and rows"
          tal:omit-tag=""
 
                                <tr>
                                        <td>
-                                               <table  cellspacing="0">
-                                                       <tbody tal:attributes="id  box_id">
+                                               <table cellspacing="0">
+                                                       <tbody tal:attributes="id  box_id; name rootNode/id">
                                                                <tr tal:repeat="row rows">
                                                                <td tal:define="indent python: row.depth - 1" tal:attributes="colspan indent" tal:condition="indent">&nbsp;</td>
                                                                <td tal:define="state row/state ; rlink row/branch ; msg python:state > 0 and 'collapse' or 'expand'" width="16"
                                                                 ><a href="#" tal:condition="state" tal:attributes="name row/id ; href rlink/link ; title msg" i18n:attributes="title"
-                                                                ><img src="/p_/pl" alt="" tal:attributes="src python:'%s/%s' % (portal_url, state > 0 and 'mi.gif' or 'pl.gif') ; alt msg" i18n:attributes="alt" border="0" height="16" width="16" /></a>
+                                                                ><img src="/p_/pl" alt="" tal:attributes="src python:'%s/%s' % (portal_url, state > 0 and 'mi.png' or 'pl.png') ; alt msg" i18n:attributes="alt" border="0" height="16" width="16" /></a>
                                                                  <a href="#" tal:attributes="name row/id ; href rlink/link" tal:condition="not:state">&nbsp;&nbsp;</a>
                                                                </td>
                                                                <td colspan="1" tal:define="obj nocall: row/object; url obj/absolute_url; description obj/Description"