diff options
author | Dave Arter <davea@mysociety.org> | 2015-02-18 15:31:16 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2015-07-22 19:14:36 +0100 |
commit | 74a22fe8e1da83f9594087ccc7dd9a1c29de1374 (patch) | |
tree | 952ee1296d6743eb08206180e4d766ad671e6429 | |
parent | 460e173ac3fd3181ac7f0f90d96cf3ca2f494bed (diff) |
[Oxfordshire] Vary pin colours by report status
This also adds a new grey pin which is used by the Oxfordshire
cobrand for reports that aren't the Council's responsibility.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Oxfordshire.pm | 8 | ||||
-rw-r--r-- | web/i/pin-grey-big.png | bin | 0 -> 5063 bytes | |||
-rw-r--r-- | web/i/pin-grey.png | bin | 0 -> 3254 bytes |
3 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm index 79be7b86f..a1b0a3d11 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -93,4 +93,12 @@ sub reports_ordering { return { -desc => 'confirmed' }; } +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'grey' if $p->state eq 'not responsible'; + return 'green' if $p->is_fixed || $p->is_closed; + return 'red' if $p->state eq 'confirmed'; + return 'yellow'; +} + 1; diff --git a/web/i/pin-grey-big.png b/web/i/pin-grey-big.png Binary files differnew file mode 100644 index 000000000..02117aa5e --- /dev/null +++ b/web/i/pin-grey-big.png diff --git a/web/i/pin-grey.png b/web/i/pin-grey.png Binary files differnew file mode 100644 index 000000000..866e6ebe7 --- /dev/null +++ b/web/i/pin-grey.png |