<%doc>Copyright (C) 2009-2010 HDE, Inc.</%doc>
<%inherit file="../include/common.part" />
+<%!
+from karesansui.lib.template import clipping
+from karesansui.lib.const import MACHINE_NAME_CLIPPING_RANGE
+%>
<script type="text/javascript">
<!--
<img src="${host.webicon()}" alt="" width="114px" height="114px" />
% endif
</div>
- ${host.name}
+ ${clipping(host.name, MACHINE_NAME_CLIPPING_RANGE) | h}
<br/>
<span class="status">(${_('Host')})</span>
</div>
<img src="${'http://%s%s' % (host.hostname, host.webicon())}" alt="" width="114px" height="114px" />
% endif
</div>
- ${host.name}
+ ${clipping(host.name, MACHINE_NAME_CLIPPING_RANGE) | h}
<br/>
<span class="status">(${_('Host')})</span>
</div>