Add link to instance for its id in floating ip list

* fix bug 964735

Change-Id: I75398eecb36c272fffb19fb3fc368d6f3d0df313
This commit is contained in:
Andy Chong
2012-03-26 11:20:56 +08:00
parent a5d5b4f288
commit 7a0af953d1
2 changed files with 13 additions and 2 deletions

View File

@@ -448,8 +448,9 @@ class Cell(html.HTMLElement):
raise template.TemplateSyntaxError, exc_info[1], exc_info[2]
if self.column.link:
url = self.column.get_link_url(self.datum)
# Escape the data inside while allowing our HTML to render
data = mark_safe('<a href="%s">%s</a>' % (url, escape(data)))
if url:
# Escape the data inside while allowing our HTML to render
data = mark_safe('<a href="%s">%s</a>' % (url, escape(data)))
return data
@property