We're need a first version
This commit is contained in:
parent
2362fd1fd2
commit
4cb2736e22
|
@ -116,7 +116,7 @@ class DisplayHTMLBlockTable(DisplayHTMLBlock):
|
|||
if len(values) != len(self.cols):
|
||||
raise ValueError('Invalid values size')
|
||||
|
||||
self.cols_cssclasses = [unicode(values)] * len(self.cols)
|
||||
self.cols_cssclasses = listToStr(values)
|
||||
|
||||
def _buildHTML(self):
|
||||
style = u''
|
||||
|
@ -153,7 +153,7 @@ class DisplayHTMLBlockTableWithGraph(DisplayHTMLBlockTable):
|
|||
self.short_titles = listToStr(self.short_titles)
|
||||
self.nb_valid_rows = nb_valid_rows
|
||||
# TOFIX
|
||||
self.icon_path = u'resources/icon'
|
||||
self.icon_path = u'/resources/icon'
|
||||
# self.icon_path = self.iwla.getConfValue('icon_path', '/')
|
||||
self.raw_rows = []
|
||||
self.maxes = [0] * len(cols)
|
||||
|
@ -261,7 +261,7 @@ class DisplayHTMLPage(object):
|
|||
f.write(u'<head>')
|
||||
f.write(u'<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />')
|
||||
for css in self.css_path:
|
||||
f.write(u'<link rel="stylesheet" href="%s"/>' % (css))
|
||||
f.write(u'<link rel="stylesheet" href="/%s"/>' % (css))
|
||||
if self.title:
|
||||
f.write(u'<title>%s</title>' % (self.title))
|
||||
f.write(u'</head>')
|
||||
|
|
3
iwla.py
3
iwla.py
|
@ -338,6 +338,9 @@ class IWLA(object):
|
|||
|
||||
page = DisplayHTMLPage(title, filename, conf.css_path)
|
||||
|
||||
last_update = '<b>Last update</b> %s<br />' % (time.strftime('%d %b %Y %H:%M', time.localtime()))
|
||||
page.appendBlock(DisplayHTMLRaw(last_update))
|
||||
|
||||
for year in self.meta_infos['stats'].keys():
|
||||
self._generateDisplayMonthStats(page, year, self.meta_infos['stats'][year])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user