Remove one s in operating systems plugin

This commit is contained in:
Gregory Soutade 2015-01-13 18:53:50 +01:00
parent 75b11c2e97
commit 3fb1b897ea

View File

@ -56,7 +56,7 @@ class IWLADisplayTopOperatingSystems(IPlugin):
def load(self):
self.icon_path = self.iwla.getConfValue('icon_path', '/')
self.create_families_pages = self.iwla.getConfValue('create_families_pages_page', True)
self.create_families_page = self.iwla.getConfValue('create_families_page_page', True)
self.icon_names = {v:k for (k, v) in awstats_data.operating_systems_family.items()}
return True
@ -69,7 +69,7 @@ class IWLADisplayTopOperatingSystems(IPlugin):
operating_systems = sorted(operating_systems.items(), key=lambda t: t[1], reverse=True)
# All in a page
if self.create_families_pages:
if self.create_families_page:
title = createCurTitle(self.iwla, u'All Operating Systems')
filename = 'operating_systems.html'
path = self.iwla.getCurDisplayPath(filename)
@ -86,7 +86,7 @@ class IWLADisplayTopOperatingSystems(IPlugin):
# Families in index
title = self.iwla._(u'Operating Systems')
if self.create_families_pages:
if self.create_families_page:
link = '<a href=\'%s\'>%s</a>' % (filename, self.iwla._(u'Details'))
title = '%s - %s' % (title, link)
@ -97,4 +97,5 @@ class IWLADisplayTopOperatingSystems(IPlugin):
for (family, entrance) in os_families:
icon = '<img src="/%s/os/%s.png"/>' % (self.icon_path, self.icon_names[family])
table.appendRow([icon, family, entrance])
table.computeRatio(2)
index.appendBlock(table)