[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/MailHost/dtml/manageMailHost.dtml
- show queue controls only if queue is enabled
Andreas Jung
andreas at andreas-jung.com
Sun Aug 19 07:45:02 EDT 2007
Log message for revision 78991:
- show queue controls only if queue is enabled
- some UI p0rn
Changed:
U Zope/trunk/lib/python/Products/MailHost/dtml/manageMailHost.dtml
-=-
Modified: Zope/trunk/lib/python/Products/MailHost/dtml/manageMailHost.dtml
===================================================================
--- Zope/trunk/lib/python/Products/MailHost/dtml/manageMailHost.dtml 2007-08-19 11:41:05 UTC (rev 78990)
+++ Zope/trunk/lib/python/Products/MailHost/dtml/manageMailHost.dtml 2007-08-19 11:45:01 UTC (rev 78991)
@@ -114,39 +114,46 @@
</div>
</td>
</tr>
- <tr>
- <td align="left" valign="top">
- <div class="form-label">
- Mails in queue <br/>
- </div>
- </td>
- <td align="left" valign="top">
- <span class="form-help"><dtml-var queueLength></span>
- </td>
- </tr>
- <tr>
- <td align="left" valign="top">
- <div class="form-label">
- Status of queue processor thread<br/>
- </div>
- </td>
- <td align="left" valign="top">
- <div class="form-help">
+</table>
- <dtml-if "queueThreadAlive()">
- Running
- <br/>
- <a href="manage_restartQueueThread?action=stop">Stop queue processor thread</a> (this may take some seconds)
- </dtml-if>
- <dtml-if "not queueThreadAlive()">
- Stopped
- <br/>
- <a href="manage_restartQueueThread?action=start">Start queue processor thread</a> (this may take some seconds)
- </dtml-if>
+<dtml-if smtp_queue>
+ <br />
+ <table cellspacing="0" cellpadding="2" border="0">
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Mails in queue <br/>
</div>
- </td>
- </tr>
-</table>
+ </td>
+ <td align="left" valign="top">
+ <span class="form-help"><dtml-var queueLength></span>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Status of queue processor thread<br/>
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <div class="form-help">
+
+ <dtml-if "queueThreadAlive()">
+ Running
+ <br/>
+ <a href="manage_restartQueueThread?action=stop">Stop queue processor thread</a> (this may take some seconds)
+ </dtml-if>
+ <dtml-if "not queueThreadAlive()">
+ Stopped
+ <br/>
+ <a href="manage_restartQueueThread?action=start">Start queue processor thread</a> (this may take some seconds)
+ </dtml-if>
+ </div>
+ </td>
+ </tr>
+ </table>
+</dtml-if>
+
</form>
<dtml-var manage_page_footer>
More information about the Zope-Checkins
mailing list