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 IWLADisplayTopDownloads(IPlugin):
table = DisplayHTMLBlockTable('All Downloads', ['URI', 'Hit'])
table.setColsCSSClass(['', 'iwla_hit'])
for (uri, entrance) in top_downloads:
table.appendRow([uri, entrance])
table.appendRow([generateHTMLLink(uri), entrance])
page.appendBlock(table)
self.iwla.getDisplay().addPage(page)
@@ -37,5 +37,5 @@ class IWLADisplayTopDownloads(IPlugin):
table = DisplayHTMLBlockTable(title, ['URI', 'Hits'])
table.setColsCSSClass(['', 'iwla_hit'])
for (uri, entrance) in top_downloads[:10]:
table.appendRow([uri, entrance])
table.appendRow([generateHTMLLink(uri), entrance])
index.appendBlock(table)