Ejemplo 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'}),
     )
Ejemplo n.º 2
0
def thread_row(d):
    name = d.name
    start = d.start
    end = d.end
    anno = d.annotation
    lines = d.lines
    rel = d.related or '-'
    lfmt = '%Y/%m/%d' + recent(end)*' %X'
    sfmt = '%Y/%m/%d' + recent(start)*' %X'
    if anno:
        anno = cilib.spangray(' - ' + anno)
    mark = cilib.a(diskmark, url='browse?'+str(name))
    sp = cilib.span(cilib.a(name, url='browse?'+str(name)),n, anno)
    return (
        mark, sp,
        cilib.stamp(start).format(sfmt),
        cilib.stamp(end).format(lfmt),
        lines, rel,
    )
Ejemplo n.º 3
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,
     )
Ejemplo n.º 4
0
 def render(self):
     ciform = cilib.frog_box(action = './',
                             value = 'submit',
                             mode = self.textmode,
                             onclick = 'setcookie();',
                             line = self.line)
     lnk = cilib.a('Log List', url='./list')
     cilib.ciprint(
         title = self.TITLE,
         subtitle = cilib.span('\n--->', lnk),
         js = '/js/frog',
         pymark = '/images/py.gif',
         bar = 'shallow',
         content = (twice_log_line(l) for l in self.data[-self.line:]),
         postcontent = (cilib.div(cilib.hr()), ciform),
         onload = 'getcookie();',
     )