Exemplo n.º 1
0
 def render(self):
     a = cilib.a('return to board', url='./')
     cilib.ciprint(
         title = 'Log Archive',
         subtitle = (n,'--->',a),
         content = cilib.table(self.rows)(**{'class':'smaller'}),
     )
Exemplo n.º 2
0
 def render(self):
     log = (self.log_line(l) for l in self.data)
     d = zip(map(cilib.number, xrange(1,len(self.data)+1)), log)
     numbered_log = cilib.table(d)(**{'class':'log'})
     lnk = cilib.a('return to Log List', url='./list')
     cilib.ciprint(
         title = 'Log : "%s"' % self.log_name ,
         subtitle = ('\n--->', lnk),
         pymark = '/images/py.gif',
         bar = 'shallow',
         content = numbered_log,
     )