Work on CSS management
This commit is contained in:
@@ -20,7 +20,8 @@ class IWLADisplayTopDownloads(IPlugin):
|
||||
title = time.strftime('All Downloads - %B %Y', self.iwla.getCurTime())
|
||||
|
||||
page = DisplayHTMLPage(title, path)
|
||||
table = DisplayHTMLBlockTable('All Downloads', ['URI', 'Hit'])
|
||||
table = DisplayHTMLBlockTable('All Downloads', ['URI', 'Hit'])
|
||||
table.setColsCSSClass(['', 'iwla_hit'])
|
||||
for (uri, entrance) in top_downloads:
|
||||
table.appendRow([uri, entrance])
|
||||
page.appendBlock(table)
|
||||
@@ -33,7 +34,8 @@ class IWLADisplayTopDownloads(IPlugin):
|
||||
# Top in index
|
||||
index = self.iwla.getDisplayIndex()
|
||||
|
||||
table = DisplayHTMLBlockTable(title, ['URI', 'Hits'])
|
||||
table = DisplayHTMLBlockTable(title, ['URI', 'Hits'])
|
||||
table.setColsCSSClass(['', 'iwla_hit'])
|
||||
for (uri, entrance) in top_downloads[:10]:
|
||||
table.appendRow([uri, entrance])
|
||||
index.appendBlock(table)
|
||||
|
||||
Reference in New Issue
Block a user