aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-06 14:52:39 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-07 13:12:32 +0000
commit11edb2b5d154ece38506e853c95f1cb2df67c0e2 (patch)
tree0dd83ec9c18cf290c3bd59b95647378016edd02f
parentce3a95950b76b416386e053c167854d9cc51018c (diff)
[Zurich] Fix display of deleted categories in admin.
-rw-r--r--templates/web/base/admin/bodies.html2
-rw-r--r--templates/web/zurich/admin/body.html2
-rw-r--r--web/cobrands/zurich/base.scss6
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/web/base/admin/bodies.html b/templates/web/base/admin/bodies.html
index 9bd85940b..eab0f4c49 100644
--- a/templates/web/base/admin/bodies.html
+++ b/templates/web/base/admin/bodies.html
@@ -20,7 +20,7 @@
</p>
[% END %]
- <table cellspacing="0" cellpadding="2" border="1">
+ <table cellspacing="0" cellpadding="2" border="1" id="admin_bodies">
<tr>
<th>[% loc('Name') %]</th>
[% IF c.cobrand.moniker == 'zurich' %]
diff --git a/templates/web/zurich/admin/body.html b/templates/web/zurich/admin/body.html
index 561e3d335..11be6eef7 100644
--- a/templates/web/zurich/admin/body.html
+++ b/templates/web/zurich/admin/body.html
@@ -19,7 +19,7 @@
<th>Kürzel</th>
</tr>
[% WHILE ( cat = contacts.next ) %]
- <tr[% IF cat.deleted %] class="is-deleted"[% END %]>
+ <tr[% IF cat.state == 'deleted' %] class="is-deleted"[% END %]>
<td><a href="[% c.uri_for( 'body', body_id, cat.category ) %]">[% cat.category_display %]</a></td>
<td>[% cat.email | html %]</td>
<td>[% cat.editor %]</td>
diff --git a/web/cobrands/zurich/base.scss b/web/cobrands/zurich/base.scss
index 101118a02..f526a8f1e 100644
--- a/web/cobrands/zurich/base.scss
+++ b/web/cobrands/zurich/base.scss
@@ -224,9 +224,9 @@ h4.static-with-rule {
margin-right: 0.2em;
}
- table tr.is-deleted {
- background-color: transparent;
- }
+}
+table#admin_bodies tr.is-deleted {
+ background-color: transparent;
}
.admin-label--inline {