Icon alignment in portlet.

This commit is contained in:
Gaetan Delannay 2010-03-19 13:24:24 +01:00
parent f70af04d4c
commit 1227f0ed5e

View file

@ -922,16 +922,22 @@
<dt class="portletHeader"> <dt class="portletHeader">
<tal:comment replace="nothing">If there is only one flavour, clicking on the portlet <tal:comment replace="nothing">If there is only one flavour, clicking on the portlet
title allows to see all root objects in the database.</tal:comment> title allows to see all root objects in the database.</tal:comment>
<a tal:condition="python: len(flavours)==1" <table cellpadding="0" cellspacing="0" width="100%">
tal:attributes="href python:'%s?type_name=%s&flavourNumber=1' % (queryUrl, ','.join(rootClasses))" <tr>
tal:content="python: tool.translate(appName)"></a> <td>
<span tal:condition="python: len(flavours)&gt;1" <a tal:condition="python: len(flavours)==1"
tal:replace="python: tool.translate(appName)"/>&nbsp; tal:attributes="href python:'%s?type_name=%s&flavourNumber=1' % (queryUrl, ','.join(rootClasses))"
<img style="cursor:pointer" tal:content="python: tool.translate(appName)"></a>
tal:condition="python: member.has_role('Manager')" <span tal:condition="python: len(flavours)&gt;1"
tal:attributes="onClick python: 'href: window.location=\'%s/skyn/view\'' % tool.absolute_url(); tal:replace="python: tool.translate(appName)"/>
title python: tool.translate('%sTool' % appName); </td>
src string:$portal_url/skyn/appyConfig.gif"/> <td align="right">
<img style="cursor:pointer"
tal:condition="python: member.has_role('Manager')"
tal:attributes="onClick python: 'href: window.location=\'%s/skyn/view\'' % tool.absolute_url();
title python: tool.translate('%sTool' % appName);
src string:$portal_url/skyn/appyConfig.gif"/>
</td>
</dt> </dt>
<tal:comment replace="nothing">TODO: implement a widget for selecting the needed flavour.</tal:comment> <tal:comment replace="nothing">TODO: implement a widget for selecting the needed flavour.</tal:comment>