diff --git a/src/coffee/templates/_sut_card.html b/src/coffee/templates/_sut_card.html index db62ce18..3d2468ed 100644 --- a/src/coffee/templates/_sut_card.html +++ b/src/coffee/templates/_sut_card.html @@ -25,11 +25,11 @@

{{ stars_description[benchmark_score.stars() | round | int]["ra
{{ harm_score.harm_definition().name() }}
-
+
{{ harm_score.stars() | display_stars("sm") }}
-
{{ stars_description[harm_score.stars() | round | int]["rank"] }}
+
{{ stars_description[harm_score.stars() | round | int]["rank"] }}
{{ stars_description[harm_score.stars() | round | int]["explanation"] }}
diff --git a/src/coffee/templates/benchmark.html b/src/coffee/templates/benchmark.html index 81a94ade..a57ad2f1 100644 --- a/src/coffee/templates/benchmark.html +++ b/src/coffee/templates/benchmark.html @@ -33,14 +33,14 @@

AI Systems Evaluated

{% for benchmark_score in grouped_benchmark_scores[benchmark_definition] %} -
+
{{ benchmark_score.sut.name }}
-
+
{{ benchmark_score.stars() | display_stars("sm") }}
diff --git a/src/coffee/templates/static/style.css b/src/coffee/templates/static/style.css index 8c95b2b1..3404626a 100644 --- a/src/coffee/templates/static/style.css +++ b/src/coffee/templates/static/style.css @@ -36,10 +36,16 @@ button, .btn { } .star-span-sm { + display: flex; + justify-content: center; + align-items: center; width: 20px; } .star-span-lg { + display: flex; + justify-content: center; + align-items: center; width: 40px; }