diff --git a/Changes b/Changes index 82116a3..5d0f267 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,8 @@ Revision history for Sparky {{$NEXT}} + - Use img.shields.io to render + project badges - Fix issues with a usage of group variables and template varibaes diff --git a/bin/sparky-web.raku b/bin/sparky-web.raku index e42e092..df4ea0d 100644 --- a/bin/sparky-web.raku +++ b/bin/sparky-web.raku @@ -510,19 +510,23 @@ sub create-cro-app ($pool) { $dbh.dispose; if $state == -1 { - redirect :permanent, '/icons/build-fail.png'; + #redirect :permanent, '/icons/build-fail.png'; + redirect :see-other, 'https://img.shields.io/static/v1?label=Sparky&message=Build+|+FAIL&color=red' } if $state == 1 { - redirect :permanent, '/icons/build-pass.png'; + #redirect :permanent, '/icons/build-pass.png'; + redirect :see-other, 'https://img.shields.io/static/v1?label=Sparky&message=Build+|+OK&color=green' } if $state == 0 { - redirect :permanent, '/icons/build-run.png'; + #redirect :permanent, '/icons/build-run.png'; + redirect :see-other, 'https://img.shields.io/static/v1?label=Sparky&message=Build+|+Run&color=yellow' } if $state == -2 { - redirect :permanent, '/icons/build-na.png'; + #redirect :permanent, '/icons/build-na.png'; + redirect :see-other, 'https://img.shields.io/static/v1?label=Sparky&message=Build+|+UNKOWN&color=gray' } }