diff --git a/junit2htmlreport/templates/matrix.html b/junit2htmlreport/templates/matrix.html index eb0ef38..0b97f98 100644 --- a/junit2htmlreport/templates/matrix.html +++ b/junit2htmlreport/templates/matrix.html @@ -9,7 +9,7 @@

{% set n_reports = report_names.__len__() %} {% if n_reports > 0 %} - + {% for outcome in matrix.result_stats %} @@ -19,26 +19,24 @@

{% endfor %}

+ - - {{matrix.short_axis(report_names[0])}} - {% endif %} - {% for i in range(n_reports - 1) %} + {% for i in range(n_reports) %} - {% for n in range(1 + i) %} - - {% endfor %} - - {{matrix.short_axis(report_names[i + 1])}} + + {{matrix.short_axis(report_names[n_reports - 1 - i])}} + {% for n in range(i) %} + + {% endfor %} {% endfor %} - {% for n in range(n_reports) %} - + {% for n in range(n_reports + 1) %} + {% endfor %} @@ -47,7 +45,7 @@

{{classname}} {% for n in range(n_reports) %} - + {% endfor %} {% for casename in matrix.casenames[classname] %} @@ -57,9 +55,10 @@

{{ matrix.combined_result_list(classname, casename)[1] }} - {% for axis in report_names %} + {% for n in range(n_reports) %} + {% set axis = report_names[n] %} - + {% if axis in xcase %} @@ -77,4 +76,4 @@

{% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/junit2htmlreport/templates/styles.css b/junit2htmlreport/templates/styles.css index c7ead09..c625a4c 100644 --- a/junit2htmlreport/templates/styles.css +++ b/junit2htmlreport/templates/styles.css @@ -127,9 +127,10 @@ h1 { .matrix-axis-name { white-space: nowrap; - padding-left: 0.5em; + padding-right: 0.5em; border-left: 1px solid black; border-top: 1px solid black; + text-align: right; } .matrix-axis-line { @@ -177,3 +178,7 @@ h1 { .matrix-result-skipped { background-color: lightyellow; } + +.matrix-even { + background-color: lightgray; +}