Icon alignment in portlet.
This commit is contained in:
parent
f70af04d4c
commit
1227f0ed5e
|
@ -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)>1"
|
<a tal:condition="python: len(flavours)==1"
|
||||||
tal:replace="python: tool.translate(appName)"/>
|
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)>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>
|
||||||
|
|
Loading…
Reference in a new issue