Fix unicode problems

Add generateHTMLLink()
This commit is contained in:
2014-12-04 21:04:41 +01:00
parent 5f72a9c912
commit 2362fd1fd2
7 changed files with 98 additions and 91 deletions

View File

@@ -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)