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, )
def twice_log_line(l): name, time, topic, comment = l if topic: col = ColorTable[topic%len(ColorTable)] else: col = 'black' a = cilib.span(name, style='color:'+col) b = cilib.span(str(topic), style='color:'+col) c = cilib.span(comment, style='color:'+col) d = cilib.stamp(time)(*'[]').format('%Y/%m/%d(%a) %X') return cilib.p(a, ' > ', b,' > ', c, d)
def shirakawa_archive_log_line(l): name, time, col, comment = l a = cilib.span(name, style='color:'+col) b = cilib.span(comment, style='color:'+col) c = cilib.stamp(time)(*'[]').format('%Y/%m%d(%a) %X') return cilib.p(a, ' > ', b, c)