Fix message for all visits and top countries

This commit is contained in:
Gregory Soutade 2022-11-10 20:04:45 +01:00
parent b5361b6036
commit 2aad389e2b
2 changed files with 5 additions and 7 deletions

View File

@ -67,7 +67,7 @@ class IWLADisplayAllVisits(IPlugin):
path = self.iwla.getCurDisplayPath(filename)
page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Last seen'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits'), self.iwla._(u'Bandwidth'), self.iwla._(u'Last seen')], [3])
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'All visits'), [self.iwla._(u'Host'), self.iwla._(u'Pages'), self.iwla._(u'Hits'), self.iwla._(u'Bandwidth'), self.iwla._(u'Last seen')], [3])
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwidth', ''])
for super_hit in last_access:

View File

@ -24,8 +24,6 @@ from iwla import IWLA
from iplugin import IPlugin
from display import *
import awstats_data
"""
Display hook
@ -50,11 +48,11 @@ Statistics deletion :
None
"""
class IWLADisplayTopGeo(IPlugin):
class IWLADisplayIPToGeo(IPlugin):
def __init__(self, iwla):
super(IWLADisplayTopGeo, self).__init__(iwla)
super(IWLADisplayIPToGeo, self).__init__(iwla)
self.API_VERSION = 1
#self.requires = ['IWLAPostAnalysisIPToGeo']
self.requires = ['IWLAPostAnalysisIPToGeo']
def load(self):
self.icon_path = self.iwla.getConfValue('icon_path', '/')
@ -106,7 +104,7 @@ class IWLADisplayTopGeo(IPlugin):
# Countries in index
title = self.iwla._(u'Countries')
if self.create_geo_page:
link = '<a href=\'%s\'>%s</a>' % (filename, self.iwla._(u'Details'))
link = '<a href=\'%s\'>%s</a>' % (filename, self.iwla._(u'All countries'))
title = '%s - %s' % (title, link)
index = self.iwla.getDisplayIndex()