Fix unicode problems
Add generateHTMLLink()
This commit is contained in:
@@ -23,7 +23,7 @@ class IWLADisplayTopHits(IPlugin):
|
||||
table = DisplayHTMLBlockTable('All Hits', ['URI', 'Entrance'])
|
||||
table.setColsCSSClass(['', 'iwla_hit'])
|
||||
for (uri, entrance) in top_hits:
|
||||
table.appendRow([uri, entrance])
|
||||
table.appendRow([generateHTMLLink(uri), entrance])
|
||||
page.appendBlock(table)
|
||||
|
||||
self.iwla.getDisplay().addPage(page)
|
||||
@@ -37,5 +37,5 @@ class IWLADisplayTopHits(IPlugin):
|
||||
table = DisplayHTMLBlockTable(title, ['URI', 'Entrance'])
|
||||
table.setColsCSSClass(['', 'iwla_hit'])
|
||||
for (uri, entrance) in top_hits[:10]:
|
||||
table.appendRow([uri, entrance])
|
||||
table.appendRow([generateHTMLLink(uri), entrance])
|
||||
index.appendBlock(table)
|
||||
|
||||
Reference in New Issue
Block a user