diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-15 16:01:18 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-15 16:01:18 +0100 |
commit | 4cb5b632afa97850f5dda1e94dc513ee1515cd2c (patch) | |
tree | 05c4175b8582a2fe52ed74e5dc1a3e3a70506891 /templates/web/default | |
parent | d6f984e78bba58710d03aba15b41b897aa078040 (diff) |
change cobrand url to uri and change all c.cobrand.url to c.uri_for in templates
Diffstat (limited to 'templates/web/default')
-rw-r--r-- | templates/web/default/index.html | 2 | ||||
-rw-r--r-- | templates/web/default/tokens/confirm_problem.html | 2 | ||||
-rw-r--r-- | templates/web/default/tokens/error.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/default/index.html b/templates/web/default/index.html index 1e64779e9..fa1974730 100644 --- a/templates/web/default/index.html +++ b/templates/web/default/index.html @@ -43,7 +43,7 @@ || loc("Enter a nearby GB postcode, or street name and area"); %] -<form action="[% c.cobrand.url('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> +<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> <label for="pc">[% question %]:</label> <input type="text" name="pc" value="" id="pc" size="10" maxlength="200"> <input type="submit" value="[% loc('Go') %]" id="submit"> diff --git a/templates/web/default/tokens/confirm_problem.html b/templates/web/default/tokens/confirm_problem.html index aeff2cc9c..cc3fb6400 100644 --- a/templates/web/default/tokens/confirm_problem.html +++ b/templates/web/default/tokens/confirm_problem.html @@ -12,7 +12,7 @@ tprintf( loc( '. You can <a href="%s">view the problem on this site</a>.' ), - c.cobrand.url( '/report/' _ problem.id ) + c.uri_for( '/report', problem.id ) ); %] </p> diff --git a/templates/web/default/tokens/error.html b/templates/web/default/tokens/error.html index 76e22c119..e3fa6c170 100644 --- a/templates/web/default/tokens/error.html +++ b/templates/web/default/tokens/error.html @@ -2,7 +2,7 @@ <h1>[% loc('Error') %]</h1> -[% contact_url = c.cobrand.url('/contact'); %] +[% contact_url = c.uri_for('/contact'); %] <p>[% tprintf( loc('Thank you for trying to confirm your update or problem. We seem to have an error ourselves though, so <a href="%s">please let us know what went on</a> and we\'ll look into it.'), contact_url ) %]</p> |