[Zope-Checkins] CVS: Zope/lib/python/OFS/dtml - main.dtml:1.20
Yvo Schubbe
schubbe@web.de
Thu, 12 Jun 2003 07:19:40 -0400
Update of /cvs-repository/Zope/lib/python/OFS/dtml
In directory cvs.zope.org:/tmp/cvs-serv10510/lib/python/OFS/dtml
Modified Files:
main.dtml
Log Message:
show [Set View as Default] also with just one sub-object
=== Zope/lib/python/OFS/dtml/main.dtml 1.19 => 1.20 ===
--- Zope/lib/python/OFS/dtml/main.dtml:1.19 Thu Jun 12 06:21:00 2003
+++ Zope/lib/python/OFS/dtml/main.dtml Thu Jun 12 07:19:40 2003
@@ -252,14 +252,13 @@
</div>
</td>
</tr>
-<dtml-if "_.len(objectItems)>1">
- <dtml-if "hasOrderSupport and
- _.SecurityCheckPermission( 'Manage properties', this() )">
+<dtml-if "hasOrderSupport and
+ _.SecurityCheckPermission( 'Manage properties', this() )">
<tr>
<td align="left" valign="top" width="16"></td>
<td align="left" valign="top">
<div class="form-element">
- <dtml-if expr="skey == 'position'">
+ <dtml-if expr="skey == 'position' and _.len(objectItems) > 1">
<input class="form-element" type="submit"
name="manage_move_objects_up:method" value="Up" />
/
@@ -289,7 +288,6 @@
</div>
</td>
</tr>
- </dtml-if>
</dtml-if>
</table>