Add a star for merged feeds parsers

This commit is contained in:
Gregory Soutade
2015-02-18 20:56:03 +01:00
parent cfbd35d818
commit f5b0c35bad
2 changed files with 24 additions and 9 deletions

View File

@@ -21,8 +21,7 @@
from iwla import IWLA
from iplugin import IPlugin
from display import *
import awstats_data
from plugins.post_analysis.feeds import IWLAPostAnalysisFeeds
"""
Display hook
@@ -81,12 +80,15 @@ class IWLADisplayFeeds(IPlugin):
if display_visitor_ip and\
super_hit.get('dns_name_replaced', False):
address = '%s [%s]' % (address, super_hit['remote_ip'])
if super_hit['feed_parser'] == IWLAPostAnalysisFeeds.MERGED_FEED_PARSER:
address += '*'
if super_hit['robot']:
table.appendRow([address, super_hit['not_viewed_pages'], super_hit['not_viewed_hits']])
else:
table.appendRow([address, super_hit['viewed_pages'], super_hit['viewed_hits']])
page.appendBlock(table)
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._('Merged feeds parsers'))))
page.appendBlock(note)
display.addPage(page)
# Found in index