Work on CSS management

This commit is contained in:
2014-11-27 21:40:23 +01:00
parent d2b0d0dae6
commit 3858127a6d
8 changed files with 69 additions and 22 deletions

View File

@@ -21,6 +21,7 @@ class IWLADisplayTopHits(IPlugin):
page = DisplayHTMLPage(title, path)
table = DisplayHTMLBlockTable('All Hits', ['URI', 'Entrance'])
table.setColsCSSClass(['', 'iwla_hit'])
for (uri, entrance) in top_hits:
table.appendRow([uri, entrance])
page.appendBlock(table)
@@ -34,6 +35,7 @@ class IWLADisplayTopHits(IPlugin):
index = self.iwla.getDisplayIndex()
table = DisplayHTMLBlockTable(title, ['URI', 'Entrance'])
table.setColsCSSClass(['', 'iwla_hit'])
for (uri, entrance) in top_hits[:10]:
table.appendRow([uri, entrance])
index.appendBlock(table)