-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cycling UK] Open privacy policy links in new window
Some browsers put the user back at the category selection stage of the reporting flow if they use the back button after following the privacy policy link.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[% FILTER collapse %] | ||
[% category = mark_safe(category) %] | ||
[% IF unresponsive.$category OR unresponsive.ALL OR bodies_to_list.size == 0 %] | ||
[% tprintf( | ||
loc('These will be published online for others to see, in accordance with our <a href="%s" target="_blank">privacy policy</a>.'), | ||
c.cobrand.privacy_policy_url) | ||
%] | ||
[% ELSE %] | ||
[% PROCESS 'report/new/councils_text_all.html' %] | ||
[% END %] | ||
[% END -%] |
9 changes: 9 additions & 0 deletions
9
templates/web/cyclinguk/report/new/councils_text_private.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[% FILTER collapse %] | ||
[% category = mark_safe(category) %] | ||
[% IF unresponsive.$category OR unresponsive.ALL OR bodies_to_list.size == 0 %] | ||
[% loc('These details will never be shown online without your permission.') %] | ||
[% ELSE %] | ||
[% loc('These details will be sent to the council, but will never be shown online without your permission.') %] | ||
[% END %] | ||
(<a href="[% c.cobrand.privacy_policy_url %]" target="_blank">[% loc('See our privacy policy') %]</a>.) | ||
[% END -%] |