{{py: def format_options(str): '''Helper function for formatting the content of the options line''' optionsAsList = html_quote(' ' + str).split(' -') optionsAsList = [' -' + option + '' for option in optionsAsList[1:]] return html(''.join(optionsAsList)) }} {{for lineName in ['tool', 'limit', 'host', 'os', 'system', 'date', 'runset', 'branch', 'options', 'property', 'title']}} {{if lineName in head and head[lineName]}} {{py:line = head[lineName]}} {{for cell, width in line.content}} {{endfor}} {{endif}} {{endfor}} {{for line in body}} {{for id, show in zip(line.id[1:], relevant_id_columns[1:])}} {{if show}} {{endif}} {{endfor}} {{for runResult in line.results}} {{for column, value in zip(runResult.columns, runResult.values)}} {{if column.title == 'status'}} {{if runResult.log_file}} {{else}} {{endif}} {{else}} {{endif}} {{endfor}} {{endfor}} {{endfor}} {{py: def format_stat_title(stat, column, format_value): '''Helper function to create the tooltip of a status cell containing average etc.''' if not stat or not stat.avg: return None values = {k: format_value(v, column) for k, v in stat.__dict__.items()} return 'Min: {min}, Max: {max}, Average: {avg}, Median: {median}'.format(**values) }} {{py:line = head['title']}} {{for cell, width in line.content}} {{endfor}} {{for line in foot}} {{for cell, column in zip(line.content, flatten(columns))}} {{endfor}} {{endfor}} {{py:line = head['runset']}} {{for cell, width in line.content}} {{endfor}}
{{line.name}}{{format_options(cell) if line.id == 'options' else cell}}
{{line.short_filename}}{{id}}{{(value or '-').lower()}}{{(value or '-').lower()}}{{format_value(value, column)|html}}
{{line.name}}{{cell}}
{{line.title | html}}{{format_value(cell, column)}}
{{line.name}}{{cell}}