From 4a3b7038d8dce34e4474397abc8fc536eb4a1837 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Sat, 20 Nov 2021 20:36:50 -0500 Subject: [PATCH] Fix badge pills for task result colors This brings them back almost to the same behavior as before although the text changes color on mouse over instead of changing the color of the badge. --- ara/ui/static/css/ara.css | 1 + ara/ui/templates/partials/host_index_row.html | 10 +++++----- ara/ui/templates/partials/host_results.html | 12 ++++++------ ara/ui/templates/partials/playbook_hosts.html | 10 +++++----- ara/ui/templates/partials/playbook_results.html | 2 +- ara/ui/templates/partials/result_status_icon.html | 12 ++++++------ 6 files changed, 24 insertions(+), 23 deletions(-) diff --git a/ara/ui/static/css/ara.css b/ara/ui/static/css/ara.css index a73b27f7..2825e600 100644 --- a/ara/ui/static/css/ara.css +++ b/ara/ui/static/css/ara.css @@ -26,6 +26,7 @@ .ara-result-status-badge { font-size: 90% !important; + text-decoration: none; } .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { diff --git a/ara/ui/templates/partials/host_index_row.html b/ara/ui/templates/partials/host_index_row.html index dc955720..7de4978e 100644 --- a/ara/ui/templates/partials/host_index_row.html +++ b/ara/ui/templates/partials/host_index_row.html @@ -22,27 +22,27 @@ {% if host.ok %} - + {{ host.ok }} OK {% endif %} {% if host.changed %} - + {{ host.changed }} CHANGED {% endif %} {% if host.failed %} - + {{ host.failed }} FAILED {% endif %} {% if host.unreachable %} - + {{ host.unreachable }} UNREACHABLE {% endif %} {% if host.skipped %} - + {{ host.skipped }} SKIPPED {% endif %} diff --git a/ara/ui/templates/partials/host_results.html b/ara/ui/templates/partials/host_results.html index d053a821..585c38ea 100644 --- a/ara/ui/templates/partials/host_results.html +++ b/ara/ui/templates/partials/host_results.html @@ -10,27 +10,27 @@ Task results: {{ host.name }} {% if host.ok %} - + {{ host.ok }} OK {% endif %} {% if host.changed %} - + {{ host.changed }} CHANGED {% endif %} {% if host.failed %} - + {{ host.failed }} FAILED {% endif %} {% if host.unreachable %} - + {{ host.unreachable }} UNREACHABLE {% endif %} {% if host.skipped %} - + {{ host.skipped }} SKIPPED {% endif %} @@ -81,7 +81,7 @@
diff --git a/ara/ui/templates/partials/playbook_hosts.html b/ara/ui/templates/partials/playbook_hosts.html index ec72a9b9..8570bb69 100644 --- a/ara/ui/templates/partials/playbook_hosts.html +++ b/ara/ui/templates/partials/playbook_hosts.html @@ -42,27 +42,27 @@

{% if host.ok %} - + {{ host.ok }} OK {% endif %} {% if host.changed %} - + {{ host.changed }} CHANGED {% endif %} {% if host.failed %} - + {{ host.failed }} FAILED {% endif %} {% if host.unreachable %} - + {{ host.unreachable }} UNREACHABLE {% endif %} {% if host.skipped %} - + {{ host.skipped }} SKIPPED {% endif %} diff --git a/ara/ui/templates/partials/playbook_results.html b/ara/ui/templates/partials/playbook_results.html index 56808261..717f30c1 100644 --- a/ara/ui/templates/partials/playbook_results.html +++ b/ara/ui/templates/partials/playbook_results.html @@ -62,7 +62,7 @@

diff --git a/ara/ui/templates/partials/result_status_icon.html b/ara/ui/templates/partials/result_status_icon.html index 662375d9..fe6b813b 100644 --- a/ara/ui/templates/partials/result_status_icon.html +++ b/ara/ui/templates/partials/result_status_icon.html @@ -1,15 +1,15 @@ {% if status == "ok" %} - + {% elif status == "failed" or status == "unreachable" %} - + {% elif status == "ignored" %} - + {% elif status == "skipped" %} - + {% elif status == "changed" %} - + {% else %} - + {% endif %} {{ status | upper }}