Author: eallen
Date: 2009-06-09 16:24:38 -0400 (Tue, 09 Jun 2009)
New Revision: 3441
Modified:
mgmt/trunk/cumin/python/cumin/inventory/system.py
Log:
Truncate the Top System Name when needed in the browser.
Modified: mgmt/trunk/cumin/python/cumin/inventory/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/inventory/system.py 2009-06-09 20:24:07 UTC (rev 3440)
+++ mgmt/trunk/cumin/python/cumin/inventory/system.py 2009-06-09 20:24:38 UTC (rev 3441)
@@ -92,14 +92,14 @@
col.alignment = "right"
self.add_column(col)
- class NameColumn(TopTableColumn):
+ class NameColumn(TopClientTruncateColumn):
def render_title(self, session, data):
return "Name"
def render_content(self, session, data):
system = Identifiable(data["id"])
href = self.page.main.inventory.system.get_href(session, system)
- return fmt_link(href, fmt_shorten(data["name"]))
+ return fmt_link(href, data["name"],
link_title=data["name"])
class LoadColumn(TopTableColumn):
def render_title(self, session, data):
Show replies by date