aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/admin/problem_row.html
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2021-10-07 13:32:40 +0200
committerMarius Halden <marius.h@lden.org>2021-10-07 13:32:40 +0200
commit09dacfc6b8bf62addeee16c20b1d90c2a256da96 (patch)
tree7caa2bf9e92227ab74448f9b746dd28bbcb81b2a /templates/web/zurich/admin/problem_row.html
parent585e57484f9c6332668bf1ac0a6a3b39dbe32223 (diff)
parentcea89fb87a96943708a1db0f646492fbfaaf000f (diff)
Merge tag 'v3.1' into fiksgatami-devfiksgatami-dev
Diffstat (limited to 'templates/web/zurich/admin/problem_row.html')
-rw-r--r--templates/web/zurich/admin/problem_row.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html
index 502a7bc39..a2805d6dc 100644
--- a/templates/web/zurich/admin/problem_row.html
+++ b/templates/web/zurich/admin/problem_row.html
@@ -1,3 +1,5 @@
+[% no_edit = no_edit AND NOT c.req.params.internal ~%]
+
[%- FOR problem IN problems %]
[% SET p_body = problem.bodies.values.0 %]
<tr[%
@@ -21,14 +23,15 @@
<td>[% prettify_state(problem.state) %]
[% IF problem.state == 'feedback pending';
SET cs=problem.get_extra_metadata('closure_status');
- IF cs %] ([% prettify_state(cs) %]) [% END; END %]</td>
+ IF cs %] ([% prettify_state(cs) %]) [% END; END %]
+ [% IF problem.non_public %]<br><i>Interne Meldung</i>[% END %]</td>
[% IF include_subdiv %]
<td>
[%- IF p_body.parent.parent.id -%][%# ...it's a subdivision %]
[% PROCESS value_or_nbsp value=p_body.name %]
[%- ELSIF problem.external_body %]
- [% PROCESS value_or_nbsp value=problem.body(c).name %]
+ [% PROCESS value_or_nbsp value=problem.body.name %]
[%- ELSE -%]
&nbsp;
[%- END -%]