aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2015-03-13 12:27:17 +0000
committerHakim Cassimally <hakim@mysociety.org>2015-03-20 16:20:59 +0000
commit10b3a899af00205e46e177509a0b4c13bf746299 (patch)
tree7ab16ee9ebbf4c0494baa93923bca7d747bb1b51 /web
parentafe94a2eff801b769e55d5527a1367406810958a (diff)
[Harrogate] show warning banner for NYCC categories
Harrogate asked for NYCC managed issues to be linked to that council's website. We don't prevent the issue from being logged, but do show a warning banner. As this is at Harrogate's request, we only do this for the Harrogate cobrand, not the whole site, using a new cobrand hook `munge_category_list` Unfortunately, categories are currently passed to the template as plain text, e.g. not structured data. As a simple implementation, we append "( NYCC)" to the appropriate category names. JS could then strip the names back in future, if required (though we're not doing this.) Instead we add a jQuery hook to show the most appropriate link provided. See https://github.com/mysociety/FixMyStreet-Commercial/issues/703
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/harrogate/base.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/cobrands/harrogate/base.scss b/web/cobrands/harrogate/base.scss
index eccb1a84f..318ee33ee 100644
--- a/web/cobrands/harrogate/base.scss
+++ b/web/cobrands/harrogate/base.scss
@@ -63,3 +63,15 @@ label[for=form_INFO_TEXT] {
padding: 0.5em;
font-size: 0.8em;
}
+
+.nycc-notice {
+ border: solid 1px black;
+ background: #00539F;
+ color: white;
+ padding: 0.5em;
+ margin-top: 1em;
+ a {
+ color: white;
+ text-decoration: underline;
+ }
+}