Some CSS classes where not set
This commit is contained in:
parent
ab1167c621
commit
6949235fc4
|
@ -73,6 +73,7 @@ class IWLADisplayFeeds(IPlugin):
|
||||||
|
|
||||||
page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
|
page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
|
||||||
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'All feeds parsers'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits')])
|
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'All feeds parsers'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits')])
|
||||||
|
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit'])
|
||||||
for super_hit in hits.values():
|
for super_hit in hits.values():
|
||||||
if not super_hit['feed_parser']: continue
|
if not super_hit['feed_parser']: continue
|
||||||
nb_feeds_parsers += 1
|
nb_feeds_parsers += 1
|
||||||
|
|
|
@ -74,7 +74,8 @@ class IWLADisplayTrackUsers(IPlugin):
|
||||||
path = self.iwla.getCurDisplayPath(filename)
|
path = self.iwla.getCurDisplayPath(filename)
|
||||||
|
|
||||||
page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
|
page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
|
||||||
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Tracked users'), [self.iwla._(u'Page'), self.iwla._(u'Last Access')])
|
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Tracked users'), [self.iwla._(u'Pages'), self.iwla._(u'Last Access')])
|
||||||
|
table.setColsCSSClass(['iwla_page', ''])
|
||||||
for ip in self.tracked_ip:
|
for ip in self.tracked_ip:
|
||||||
if not ip in hits.keys(): continue
|
if not ip in hits.keys(): continue
|
||||||
if 'dns_name_replaced' in hits[ip].keys():
|
if 'dns_name_replaced' in hits[ip].keys():
|
||||||
|
@ -110,6 +111,7 @@ class IWLADisplayTrackUsers(IPlugin):
|
||||||
index = self.iwla.getDisplayIndex()
|
index = self.iwla.getDisplayIndex()
|
||||||
|
|
||||||
table = display.createBlock(DisplayHTMLBlockTable, title, [self.iwla._(u'IP'), self.iwla._(u'Last Access'), self.iwla._(u'Pages'), self.iwla._(u'Hits')])
|
table = display.createBlock(DisplayHTMLBlockTable, title, [self.iwla._(u'IP'), self.iwla._(u'Last Access'), self.iwla._(u'Pages'), self.iwla._(u'Hits')])
|
||||||
|
table.setColsCSSClass(['', '', 'iwla_page', 'iwla_hit'])
|
||||||
for ip in self.tracked_ip:
|
for ip in self.tracked_ip:
|
||||||
if not ip in hits.keys(): continue
|
if not ip in hits.keys(): continue
|
||||||
if 'dns_name_replaced' in hits[ip].keys():
|
if 'dns_name_replaced' in hits[ip].keys():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user