Skip to content

Commit

Permalink
show when we sent a protest email automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Closs committed Jul 6, 2012
1 parent 5c3736e commit 3c9a6fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Biopay/PaymentProcessor.pm
@@ -1,10 +1,10 @@
package Biopay::PaymentProcessor;
use Moose;
use methods;
use Dancer::Plugin::Email;
use Dancer ':syntax';
use Moose;
use LWP::UserAgent;
use URI::Query;
use methods;

has 'ua' => (is => 'ro', isa => 'LWP::UserAgent', lazy_build => 1);
has 'payment_args' => (is => 'ro', isa => 'HashRef', lazy_build => 1);
Expand Down
4 changes: 3 additions & 1 deletion views/email/receipt.tt
@@ -1,6 +1,8 @@
<h1>Receipt: $[% total_price %] for [% total_litres %]L of clean, green Biodiesel!</h1>
<p>Hello [% member.name %]!</p>
[% IF !member.in_protest %]
[% IF member.in_protest %]
<p><strong>Thanks for joining our protest against the bogus tax! We've sent another email on your behalf!</strong></p>
[% ELSE %]
<p><a href="[% member.protest_link %]">Click here to help protest the bogus tax attack on our Biodiesel!</a> It'll only take a moment!</p>
[% END %]
<p>
Expand Down

0 comments on commit 3c9a6fb

Please sign in to comment.