diff options
author | rbg-joe <rbg-joe@users.noreply.github.com> | 2017-02-06 15:25:53 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-02-06 15:44:01 +0000 |
commit | 514c4da6c45af09e08c8528c479eca039c3997ab (patch) | |
tree | 15ad19af93bb078522a63a2e3c74f94b9054f9f7 /perllib/FixMyStreet | |
parent | ef93bf3f103c0ecddf0eb912d4d4f2159a7867b3 (diff) |
[Greenwich] Add a badge to official status updates
Adding an official badge to Greenwich updates so as to avoid exchanges in which
public contributions are mistaken for official ones.
As per the Bromley version e.g. https://fix.bromley.gov.uk/report/973784 - this
helps to avoid situations where public contributions are mistaken for official
ones.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index a15400cc1..26ba89fda 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -245,6 +245,8 @@ sub meta_line { my $body = $self->user->body; if ($body eq 'Bromley Council') { $body = "$body <img src='/cobrands/bromley/favicon.png' alt=''>"; + } elsif ($body eq 'Royal Borough of Greenwich') { + $body = "$body <img src='/cobrands/greenwich/favicon.png' alt=''>"; } if ($c->user_exists and $c->user->has_permission_to('view_body_contribute_details', $self->problem->bodies_str_ids)) { $meta = sprintf( _( 'Posted by <strong>%s</strong> (%s) at %s' ), $body, $user_name, Utils::prettify_dt( $self->confirmed ) ); |