diff --git a/lnt/server/ui/templates/v4_run.html b/lnt/server/ui/templates/v4_run.html
index c063f2d..fc1d9d8 100644
--- a/lnt/server/ui/templates/v4_run.html
+++ b/lnt/server/ui/templates/v4_run.html
@@ -1,431 +1,431 @@
{% import "utils.html" as utils %}
{% import "local.html" as local %}
{% set hash_field = ts.Sample.get_hash_of_binary_field() %}
{% set machine = run.machine %}
{% set neighboring_runs = request_info.neighboring_runs %}
{% set comparison_neighboring_runs = request_info.comparison_neighboring_runs %}
{% extends "layout.html" %}
{% set components = [(ts.name, v4_url_for(".v4_recent_activity")),
('%s:%s' % (machine.name, machine.id),
v4_url_for(".v4_machine", id=machine.id))] %}
{% block head %}
{% endblock %}
{% block onload %}
$('.profile-but-no-prev').tooltip();
$('.profile-prev-only').tooltip();
{% endblock %}
{% block title %}Run Results{% endblock %}
{% macro get_cell_value(cr, field) %}
{% set test_status = cr.get_test_status() %}
{% set value_status = cr.get_value_status(ignore_small=not options.show_small_diff) %}
{% set run_cell_value = cr.current|print_value(field.unit, field.unit_abbrev) %}
{% set run_cell_value = "-" if test_status in [analysis.REGRESSED, analysis.UNCHANGED_FAIL] else run_cell_value %}
{% if options.show_previous %}
{% set prev_cell_value = "-" if cr.previous is none else "%.4f" % cr.previous %}
{% set prev_cell_value = "-" if test_status in [analysis.IMPROVED, analysis.UNCHANGED_FAIL] else prev_cell_value %}
{{prev_cell_value}} |
{% endif %}
{% set cell_color = none %}
{% if test_status == analysis.REGRESSED %}
{% set cell_color = (233,128,128) %}
{% elif test_status == analysis.IMPROVED %}
{% set cell_color = (143,223,95) %}
{% elif test_status == analysis.UNCHANGED_FAIL %}
{% set cell_color = (255,195,67) %}
{% endif %}
{% if cell_color %}
{{ run_cell_value }} |
{% else %}
{{run_cell_value}} |
{% endif %}
{% if test_status == analysis.UNCHANGED_PASS and
(options.show_all or
value_status == analysis.REGRESSED or
value_status == analysis.IMPROVED) %}
{{ cr.pct_delta|aspctcell(reverse=cr.bigger_is_better)|safe }}
{% else %}
- |
{% endif %}
{% if options.show_delta %}
{{ "-" if cr.delta is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.delta }} |
{% endif %}
{% if options.show_stddev %}
{{ "-" if cr.stddev is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.stddev }} |
{% endif %}
{% if options.show_mad %}
{{ "-" if cr.MAD is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.MAD }} |
{% endif %}
{% if options.show_all_samples %}
[
{%- for v in cr.samples -%}
{{ ", " if not loop.first else "" }}
{{ "%.4f" % v }}
{%- endfor -%}
]
|
{% endif %}
{% if options.show_sample_counts %}
{{cr.samples|length}} |
{% endif %}
{% endmacro %}
{% block sidebar %}
Runs:
{# Show a small number of neighboring runs. #}
{% for r in neighboring_runs %}
-
{{ ""|safe if r.id == run.id else "" }}
{{ local.render_compare_to_run(r, v4_url_for('.v4_run', id=r.id)) }}
{{ ""|safe if r.id == run.id else "" }}
{% endfor %}
{# Show a small number of runs in the neighborhood of the comparison run. #}
{% if comparison_neighboring_runs %}
Compare To:
{% for r in comparison_neighboring_runs %}
-
{{ ""|safe if compare_to and r.id == compare_to.id else "" }}
{{ local.render_compare_to_run(r, v4_url_for('.v4_run', id=run.id, compare_to=r.id)) }}
{{ ""|safe if compare_to and r.id == compare_to.id else "" }}
{% endfor %}
{% endif %}
{% endblock %}
{% block body %}
{{ utils.render_popup_begin('machine_info', 'Machine Info', true) }}
Fields
{% for item in machine.fields %}
{{item.name}} |
{{ utils.newline_to_br(machine.get_field(item)) }} |
{% endfor %}
Parameters
{% for key,value in machine.parameters|dictsort %}
{{key}} |
{{ utils.newline_to_br(value) }} |
{% endfor %}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('run_info', 'Run Info', true) }}
Fields
Name | Value |
{% for item in run.fields %}
{{item.name}} |
{{ utils.newline_to_br(run.get_field(item)) }} |
{% endfor %}
Parameters
Name | Value |
{% for key, value in run.parameters|dictsort(case_sensitive=True) %}
{{key}} |
{{ utils.newline_to_br(value) }} |
{% endfor %}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('view_options', 'View Options', true) }}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('html_report', 'Report',
options.hide_report_by_default) }}
{{ utils.regex_filter_box(input_id='filter',
selector='.searchable tr',
placeholder="Benchmark name regex...",
selector_part_to_search=".benchmark-name") }}
{% include "reporting/runs.html" %}
{{ utils.render_popup_end() }}
{% set graph_base=v4_url_for('.v4_graph', highlight_run=run.id) %}
{% if options.show_data_table %}
Test Data
Name |
{% for field in metric_fields %}
{{field.name}} |
{% endfor %}
- |
{% for field in metric_fields %}
Prev |
Value |
% |
{% endfor %}
{% for test_name,test_id in test_info %}
{{ test_name }} |
{% for field in metric_fields %}
{% set cr = request_info.sri.get_run_comparison_result(
run, compare_to, test_id, field, hash_field) %}
{{cr.previous}} |
{{cr.current}} |
{{cr.pct_delta}} |
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}