diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-16 17:57:27 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-23 15:39:50 +0100 |
commit | 86eae502d494090430f3076f25331df797b9172b (patch) | |
tree | c4011f364c6d3bf7e3f12b616d2b54f6277f4bb1 /templates | |
parent | 0c4e267f43c573f638dd4771e5c39f6b3861dd3d (diff) |
Have only one bodies_to_list variable.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/new/category_extras.html | 3 | ||||
-rw-r--r-- | templates/web/base/report/new/councils_text_all.html | 3 | ||||
-rw-r--r-- | templates/web/fixamingata/report/new/top_message_none.html | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/templates/web/base/report/new/category_extras.html b/templates/web/base/report/new/category_extras.html index e2926901c..f787b9c52 100644 --- a/templates/web/base/report/new/category_extras.html +++ b/templates/web/base/report/new/category_extras.html @@ -1,4 +1,5 @@ -[% DEFAULT list_of_names = bodies_to_list_names %] +[% SET default_list = [] %][% FOR b IN bodies_to_list.values %][% default_list.push(b.name) %][% END %] +[% DEFAULT list_of_names = default_list %] <div id="category_meta"> [%- IF unresponsive.$category %] diff --git a/templates/web/base/report/new/councils_text_all.html b/templates/web/base/report/new/councils_text_all.html index 9a11eaae6..3ea641cbf 100644 --- a/templates/web/base/report/new/councils_text_all.html +++ b/templates/web/base/report/new/councils_text_all.html @@ -1,4 +1,5 @@ -[% DEFAULT list_of_names = bodies_to_list_names %] +[% SET default_list = [] %][% FOR b IN bodies_to_list.values %][% default_list.push(b.name) %][% END %] +[% DEFAULT list_of_names = default_list %] <p> [% diff --git a/templates/web/fixamingata/report/new/top_message_none.html b/templates/web/fixamingata/report/new/top_message_none.html index 9a9141b33..641c08f47 100644 --- a/templates/web/fixamingata/report/new/top_message_none.html +++ b/templates/web/fixamingata/report/new/top_message_none.html @@ -1,15 +1,15 @@ <p> -[% IF bodies_to_list_names.size == 1 %] +[% IF bodies_to_list.size == 1 %] [% tprintf( "%s har valt att inte ta emot rapporter från FixaMinGata, utan hänvisar fel- & synpunktsrapportering till <a href='%s'>kommunens egen webbplats</a>.", - bodies_to_list_names.first, bodies_to_list_urls.first); + bodies_to_list.values.first.name, bodies_to_list.values.first.external_url); %] [% END %] [% loc("If you submit a problem here the problem will <strong>not</strong> be reported to the council."); %] -[% IF bodies_to_list_names.size != 1 %] +[% IF bodies_to_list.size != 1 %] [% tprintf( loc("You can help us by finding a contact email address for local problems for %s and emailing it to us at <a href='mailto:%s'>%s</a>."), |