aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-11-06 14:40:10 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:50:07 +0000
commitc85465dfb39cb219754321b63f006d0633543a0b (patch)
tree0113cb419a97d7250c9dc1e51e2720f7b7930b02
parent9efd2981c85b3fae48118071e12058413f46a73c (diff)
Allow cobrands to provide extra class for report list items
-rw-r--r--templates/web/base/report/_item.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html
index 140abdbce..278011afd 100644
--- a/templates/web/base/report/_item.html
+++ b/templates/web/base/report/_item.html
@@ -28,6 +28,11 @@
[% END %]
[% END %]
+[%~ TRY ~%]
+ [% PROCESS 'report/_item_extra_class.html' %]
+[%~ CATCH file ~%]
+[%~ END ~%]
+
<li class="item-list__item item-list--reports__item [% item_extra_class %]"
data-report-id="[% problem.id | html %]" data-lastupdate="[% problem.lastupdate %]" id="report-[% problem.id | html %]">
<a href="[% c.cobrand.relative_url_for_report( problem ) %][% problem.url %]">