diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-03 12:29:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-03 12:29:21 +0100 |
commit | a0740c6513a2bb21bfbeda02c5fe673a191f72af (patch) | |
tree | 2a2f901b88f802860583ad5fea3d26935fe1b92b | |
parent | e8d2fd68b5a594e1f03fc4a4ca338fcd83f16bdf (diff) |
Move alert emails to new location, delete some unused ones.
-rwxr-xr-x | bin/handlemail | 2 | ||||
-rw-r--r-- | templates/email/default/alert-problem-area.txt (renamed from templates/emails/alert-problem-area) | 0 | ||||
-rw-r--r-- | templates/email/default/alert-problem-council.txt (renamed from templates/emails/alert-problem-council) | 0 | ||||
-rw-r--r-- | templates/email/default/alert-problem-nearby.txt (renamed from templates/emails/alert-problem-nearby) | 0 | ||||
-rw-r--r-- | templates/email/default/alert-problem-ward.txt (renamed from templates/emails/alert-problem-ward) | 0 | ||||
-rw-r--r-- | templates/email/default/alert-problem.txt (renamed from templates/emails/alert-problem) | 0 | ||||
-rw-r--r-- | templates/email/default/alert-update.txt (renamed from templates/emails/alert-update) | 0 | ||||
-rw-r--r-- | templates/email/default/reply-autoresponse (renamed from templates/emails/reply-autoresponse) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-problem-area.txt (renamed from templates/emails/emptyhomes/alert-problem-area) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-problem-council.txt (renamed from templates/emails/emptyhomes/alert-problem-council) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-problem-nearby.txt (renamed from templates/emails/emptyhomes/alert-problem-nearby) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-problem-ward.txt (renamed from templates/emails/emptyhomes/alert-problem-ward) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-problem.txt (renamed from templates/emails/emptyhomes/alert-problem) | 0 | ||||
-rw-r--r-- | templates/email/emptyhomes/en-gb/alert-update.txt (renamed from templates/emails/emptyhomes/alert-update) | 0 | ||||
-rw-r--r-- | templates/email/fiksgatami/update-confirm.txt | 2 | ||||
-rw-r--r-- | templates/emails/alert-confirm | 14 | ||||
-rw-r--r-- | templates/emails/problem-confirm | 20 | ||||
-rw-r--r-- | templates/emails/tms-confirm | 14 | ||||
-rw-r--r-- | templates/emails/update-confirm | 17 | ||||
-rw-r--r-- | templates/website/questionnaire | 34 | ||||
-rwxr-xr-x | web/json.cgi | 35 |
21 files changed, 2 insertions, 136 deletions
diff --git a/bin/handlemail b/bin/handlemail index c5854a9ab..8b8e03be9 100755 --- a/bin/handlemail +++ b/bin/handlemail @@ -47,7 +47,7 @@ if ($data{is_bounce_message}) { # Not a bounce, send an automatic response my $template = 'reply-autoresponse'; -open FP, "$FindBin::Bin/../templates/emails/$template" or exit 75; +open FP, "$FindBin::Bin/../templates/email/default/$template" or exit 75; $template = join('', <FP>); close FP; diff --git a/templates/emails/alert-problem-area b/templates/email/default/alert-problem-area.txt index 8c41aaf5e..8c41aaf5e 100644 --- a/templates/emails/alert-problem-area +++ b/templates/email/default/alert-problem-area.txt diff --git a/templates/emails/alert-problem-council b/templates/email/default/alert-problem-council.txt index 572e057a6..572e057a6 100644 --- a/templates/emails/alert-problem-council +++ b/templates/email/default/alert-problem-council.txt diff --git a/templates/emails/alert-problem-nearby b/templates/email/default/alert-problem-nearby.txt index 0bf8483a7..0bf8483a7 100644 --- a/templates/emails/alert-problem-nearby +++ b/templates/email/default/alert-problem-nearby.txt diff --git a/templates/emails/alert-problem-ward b/templates/email/default/alert-problem-ward.txt index efcf15993..efcf15993 100644 --- a/templates/emails/alert-problem-ward +++ b/templates/email/default/alert-problem-ward.txt diff --git a/templates/emails/alert-problem b/templates/email/default/alert-problem.txt index 8369b8e28..8369b8e28 100644 --- a/templates/emails/alert-problem +++ b/templates/email/default/alert-problem.txt diff --git a/templates/emails/alert-update b/templates/email/default/alert-update.txt index ac0ddd50a..ac0ddd50a 100644 --- a/templates/emails/alert-update +++ b/templates/email/default/alert-update.txt diff --git a/templates/emails/reply-autoresponse b/templates/email/default/reply-autoresponse index 672c1f3c9..672c1f3c9 100644 --- a/templates/emails/reply-autoresponse +++ b/templates/email/default/reply-autoresponse diff --git a/templates/emails/emptyhomes/alert-problem-area b/templates/email/emptyhomes/en-gb/alert-problem-area.txt index 0fb11665c..0fb11665c 100644 --- a/templates/emails/emptyhomes/alert-problem-area +++ b/templates/email/emptyhomes/en-gb/alert-problem-area.txt diff --git a/templates/emails/emptyhomes/alert-problem-council b/templates/email/emptyhomes/en-gb/alert-problem-council.txt index 6c2d5b55c..6c2d5b55c 100644 --- a/templates/emails/emptyhomes/alert-problem-council +++ b/templates/email/emptyhomes/en-gb/alert-problem-council.txt diff --git a/templates/emails/emptyhomes/alert-problem-nearby b/templates/email/emptyhomes/en-gb/alert-problem-nearby.txt index abe027d20..abe027d20 100644 --- a/templates/emails/emptyhomes/alert-problem-nearby +++ b/templates/email/emptyhomes/en-gb/alert-problem-nearby.txt diff --git a/templates/emails/emptyhomes/alert-problem-ward b/templates/email/emptyhomes/en-gb/alert-problem-ward.txt index 14dabc386..14dabc386 100644 --- a/templates/emails/emptyhomes/alert-problem-ward +++ b/templates/email/emptyhomes/en-gb/alert-problem-ward.txt diff --git a/templates/emails/emptyhomes/alert-problem b/templates/email/emptyhomes/en-gb/alert-problem.txt index 30dc10c42..30dc10c42 100644 --- a/templates/emails/emptyhomes/alert-problem +++ b/templates/email/emptyhomes/en-gb/alert-problem.txt diff --git a/templates/emails/emptyhomes/alert-update b/templates/email/emptyhomes/en-gb/alert-update.txt index 9ae295b3e..9ae295b3e 100644 --- a/templates/emails/emptyhomes/alert-update +++ b/templates/email/emptyhomes/en-gb/alert-update.txt diff --git a/templates/email/fiksgatami/update-confirm.txt b/templates/email/fiksgatami/update-confirm.txt index 4d6d12369..70e1c2444 100644 --- a/templates/email/fiksgatami/update-confirm.txt +++ b/templates/email/fiksgatami/update-confirm.txt @@ -2,7 +2,7 @@ Subject: Bekreft din oppdatering på FiksGataMi Hei [% update.user.name %], -Vennligst klikk på lenken under for å bekrefte oppdateringen du skrev " +Vennligst klikk på lenken under for å bekrefte oppdateringen du skrev nettopp: [% token_url %] diff --git a/templates/emails/alert-confirm b/templates/emails/alert-confirm deleted file mode 100644 index bb6288119..000000000 --- a/templates/emails/alert-confirm +++ /dev/null @@ -1,14 +0,0 @@ -Subject: Confirm your alert on FixMyStreet - -Hi, - -Please click on the link below to confirm the alert you just -asked to subscribe to on FixMyStreet: - - <?=$values['url']?> - -If you can't click the link, please copy and paste it to the -address bar of your web browser. - -Yours, -The FixMyStreet team diff --git a/templates/emails/problem-confirm b/templates/emails/problem-confirm deleted file mode 100644 index 2a00e54a5..000000000 --- a/templates/emails/problem-confirm +++ /dev/null @@ -1,20 +0,0 @@ -Subject: Confirm your problem on FixMyStreet - -Hi <?=$values['name']?>, - -Please click on the link below to confirm the problem you just -added to FixMyStreet: - -<?=$values['url']?> - -If your email program does not let you click on this link, -copy and paste it into your web browser and press return. - -Your problem had the title: -<?=$values['title']?> - -And details: -<?=$values['detail']?> - -Yours, -The FixMyStreet team diff --git a/templates/emails/tms-confirm b/templates/emails/tms-confirm deleted file mode 100644 index 4821aed82..000000000 --- a/templates/emails/tms-confirm +++ /dev/null @@ -1,14 +0,0 @@ -Subject: Confirm your expression of interest in TextMyStreet - -Hi, - -Please click on the link below to confirm your expression of -interest in TextMyStreet: - - <?=$values['url']?> - -If you can't click the link, please copy and paste it to the -address bar of your web browser. - -Yours, -The FixMyStreet team diff --git a/templates/emails/update-confirm b/templates/emails/update-confirm deleted file mode 100644 index 11878ad0b..000000000 --- a/templates/emails/update-confirm +++ /dev/null @@ -1,17 +0,0 @@ -Subject: Confirm your update on FixMyStreet - -Hi <?=$values['name']?>, - -Please click on the link below to confirm the update you just wrote: - -<?=$values['url']?> - -If you can't click the link, please copy and paste it to the -address bar of your web browser. - -Your update reads: - -<?=$values['update']?> - -Yours, -The FixMyStreet team diff --git a/templates/website/questionnaire b/templates/website/questionnaire deleted file mode 100644 index 869552c4b..000000000 --- a/templates/website/questionnaire +++ /dev/null @@ -1,34 +0,0 @@ -{{ $map_start }} - -<h1>{{ $heading }}</h1> - -<form method="post" action="{{ $form_action }}" id="questionnaire"{{ $enctype }}> -<input type="hidden" name="token" value="{{ $input_h{token} }}"> - -{{ $blurb_eh }} - -<p>{{ $blurb_report }} {{ $blurb_report2 }}</p> - -{{ $errors }} - -<p>{{ $fixed_question }}</p> -<p> -<input type="radio" name="been_fixed" id="been_fixed_yes" value="Yes"{{ $been_fixed{yes} }}> -<label for="been_fixed_yes">{{ $yes }}</label> -<input type="radio" name="been_fixed" id="been_fixed_no" value="No"{{ $been_fixed{no} }}> -<label for="been_fixed_no">{{ $no }}</label> -<input type="radio" name="been_fixed" id="been_fixed_unknown" value="Unknown"{{ $been_fixed{unknown} }}> -<label for="been_fixed_unknown">{{ $dontknow }}</label> -</p> - -{{ $ever_reported }} - -{{ $blurb_update }} -<p><textarea name="update" style="max-width:90%" rows="7" cols="30">{{ $input_h{update} }}</textarea></p> -{{ $photo_input }} - -{{ $another_questionnaire }} - -<p><input type="submit" name="submit" value="{{ $submit }}"></p> </form> - -{{ $map_end }} diff --git a/web/json.cgi b/web/json.cgi deleted file mode 100755 index 70ae2a76f..000000000 --- a/web/json.cgi +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/perl -w -I../perllib - -# json.cgi: -# A small JSON API for FixMyStreet -# -# Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. -# Email: louise@mysociety.org. WWW: http://www.mysociety.org -# -# $Id: json.cgi,v 1.4 2010-01-20 11:31:26 matthew Exp $ - -# use strict; -# use Error qw(:try); -# use JSON; -# use Standard; -# -# sub main { -# my $q = shift; -# my $problems; -# my $type = $q->param('type') || ''; -# my $start_date = $q->param('start_date') || ''; -# my $end_date = $q->param('end_date') || ''; -# if ($start_date !~ /^\d{4}-\d\d-\d\d$/ || $end_date !~ /^\d{4}-\d\d-\d\d$/) { -# $problems = { error => 'Invalid dates supplied' }; -# } elsif ($type eq 'new_problems') { -# $problems = Problems::created_in_interval($start_date, $end_date); -# } elsif ($type eq 'fixed_problems') { -# $problems = Problems::fixed_in_interval($start_date, $end_date); -# } -# print $q->header( -type => 'application/json; charset=utf-8' ); -# print JSON::to_json($problems); -# } -# -# -# Page::do_fastcgi(\&main); -# |