Fix unicode problems
Add generateHTMLLink()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user