Fully rework display with CSS style inclusion

This commit is contained in:
2014-11-27 19:38:41 +01:00
parent 02233f2f37
commit d2b0d0dae6
6 changed files with 176 additions and 104 deletions

View File

@@ -42,6 +42,11 @@ class IWLADisplayAllVisits(IPlugin):
display.addPage(page)
index = self.iwla.getDisplayIndex()
block = DisplayHTMLRawBlock()
block.setRawHTML('<a href=\'%s\'>All visits</a>' % (filename))
index.appendBlock(block)
link = '<a href=\'%s\'>All visits</a>' % (filename)
block = index.getBlock('Top visitors')
if block:
block.setTitle('%s - %s' % (block.getTitle(), link))
else:
block = DisplayHTMLRawBlock()
block.setRawHTML(link)
index.appendBlock(block)