]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Beautify check counts in the patch list view
authorAli Alnubani <alialnu@mellanox.com>
Tue, 8 Jan 2019 12:38:47 +0000 (12:38 +0000)
committerStephen Finucane <stephen@that.guru>
Mon, 25 Feb 2019 11:11:53 +0000 (11:11 +0000)
commit974ff0c9959db22371907c22c0c0ff5bb079ebf2
treeefbf58e2d05a9a71252f5b338f8ad6f16fd9e394
parentbc7810e241e27c1c0476145e665da5d156253e1a
Beautify check counts in the patch list view

This patch [1] adds colors to the checks in the patch list view.
The colors are set based on the check's priority, with FAILURE
having the highest priority, followed by WARNING, and then SUCCESS.
Only the check with the highest priority and non-zero count
will be colored. This is to make failures and warnings more visible.

The patch also [2] replaces zero counts with a '-' for
FAILUREs and WARNINGs.
The SUCCESS count will only be replaced by a '-'
when all other checks have zero counts too.

Suggested-by: Thomas Monjalon <thomas@monjalon.net>
Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Signed-off-by: Stephen Finucane <stephen@that.guru>
htdocs/css/style.css
patchwork/templatetags/patch.py