aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/email/fixamingata/submit.html1
-rw-r--r--templates/web/base/admin/config_page.html2
-rw-r--r--templates/web/base/report/update.html11
-rw-r--r--templates/web/base/report/updates.html6
4 files changed, 15 insertions, 5 deletions
diff --git a/templates/email/fixamingata/submit.html b/templates/email/fixamingata/submit.html
index dfc56589a..65a692058 100644
--- a/templates/email/fixamingata/submit.html
+++ b/templates/email/fixamingata/submit.html
@@ -34,7 +34,6 @@ tror medborgaren behöver er uppmärksamhet.</p>
[%~ END ~%]
</td>
</tr>
- [% END %]
[%~ IF phone %]
<tr>
<th style="[% contact_th_style %]">Telefon</th>
diff --git a/templates/web/base/admin/config_page.html b/templates/web/base/admin/config_page.html
index 87032b0b6..d448d2a63 100644
--- a/templates/web/base/admin/config_page.html
+++ b/templates/web/base/admin/config_page.html
@@ -55,7 +55,7 @@ running version <strong>[% git_version || 'unknown' %]</strong>.
</tr>
[% INCLUDE with_cobrand value="MAP_TYPE" cob=c.cobrand.map_type %]
[% INCLUDE with_cobrand value="EXAMPLE_PLACES"
- conf = decode(c.config.EXAMPLE_PLACES.join(', '))
+ conf = c.config.EXAMPLE_PLACES.join(', ')
cob = c.cobrand.example_places %]
[% INCLUDE with_cobrand value="LANGUAGES"
cob = c.cobrand.languages %]
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 85624669a..5691376e6 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -43,10 +43,15 @@
</div>
[% END %]
- [% SET update_state = update.problem_state_display(c) %]
- [% IF update_state AND update_state != global.last_state AND NOT (global.last_state == "" AND update.problem_state == 'confirmed') %]
- <p class="meta-2">[% loc('State changed to:') %] [% update_state %]</p>
+ [% # Small chance of duplicates in the case of fixed - user followed by fixed - council %]
+ [% SET update_state = update.problem_state %]
+ [% IF ( update_state AND update_state != global.last_state AND NOT (global.last_state == "" AND update.problem_state == 'confirmed') ) OR
+ update.mark_fixed OR update.mark_open
+ %]
+ <p class="meta-2">[% loc('State changed to:') %] [% update.problem_state_display(c) %]</p>
[%- global.last_state = update_state %]
+ [%- IF update_state == "" AND update.mark_fixed %][% global.last_state = 'fixed - user' %][% END %]
+ [%- IF update_state == "" AND update.mark_open %][% global.last_state = 'confirmed' %][% END %]
[% END %]
<p class="meta-2">
diff --git a/templates/web/base/report/updates.html b/templates/web/base/report/updates.html
index 75e94b1d5..e8a2d4bd3 100644
--- a/templates/web/base/report/updates.html
+++ b/templates/web/base/report/updates.html
@@ -1,5 +1,11 @@
[% global.last_state = '' %]
[% FOREACH update IN updates %]
+[%- IF global.last_state == 'hidden' OR global.last_state == 'unconfirmed' OR update.problem_state == 'hidden' OR update.problem_state == 'unconfirmed' %]
+ [%- IF update.problem_state != '' %]
+ [%- global.last_state = update.problem_state %]
+ [%- END %]
+ [%- NEXT %]
+[%- END %]
[% INCLUDE 'report/update.html' %]
[% END %]