~patchwork-devs/patchwork/patchwork

Viewing all changes in revision 1513.

  • Committer: Stephen Finucane
  • Author(s): Ali Alnubani
  • Date: 2019-02-25 11:11:53 UTC
  • Revision ID: git-v1:974ff0c9959db22371907c22c0c0ff5bb079ebf2
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: