aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-01 17:49:11 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-01 17:49:11 +0100
commit2d1f83169c803851bf2eecff662d792bb74965f1 (patch)
treed7ed3e25962660f8e7943bc4006fc948c4339b85
parentea47736c4e5b8dc2eb72aaefb2aa0ea7d1ffc406 (diff)
Have Bromley logo in their updates.
-rw-r--r--templates/web/default/report/updates.html10
-rw-r--r--web/cobrands/bromley/favicon.pngbin0 -> 840 bytes
2 files changed, 7 insertions, 3 deletions
diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html
index 374a7c570..7a17adbc7 100644
--- a/templates/web/default/report/updates.html
+++ b/templates/web/default/report/updates.html
@@ -12,9 +12,13 @@
[% IF update.anonymous || update.name == '' %]
[% tprintf( loc( 'Posted anonymously at %s' ), prettify_epoch( update.confirmed_local.epoch ) ) -%]
- [%- ELSIF update.user.from_council %]
- [% user_name = update.user.name | html %]
- [% tprintf( loc( 'Posted by %s (<strong>%s</strong>) at %s' ), user_name, update.user.council, prettify_epoch( update.confirmed_local.epoch ) ) -%]
+ [%- ELSIF update.user.from_council;
+ user_name = update.user.name | html;
+ council = update.user.council;
+ IF c.cobrand.moniker == 'bromley';
+ council = "$council <img src='/cobrands/bromley/favicon.png' alt=''>";
+ END %]
+ [% tprintf( loc( 'Posted by %s (<strong>%s</strong>) at %s' ), user_name, council, prettify_epoch( update.confirmed_local.epoch ) ) -%]
[%- ELSE %]
[% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_epoch( update.confirmed_local.epoch ) ) | html -%]
[%- END -%]
diff --git a/web/cobrands/bromley/favicon.png b/web/cobrands/bromley/favicon.png
new file mode 100644
index 000000000..0acd804e7
--- /dev/null
+++ b/web/cobrands/bromley/favicon.png
Binary files differ