Permalink
Browse files

improve protest page

  • Loading branch information...
1 parent 890f382 commit cc7479aadfbe976bad4911092a66eb844d9096b9 Luke Closs committed Jun 11, 2012
Showing with 18 additions and 2 deletions.
  1. +12 −0 lib/Biopay.pm
  2. +1 −1 views/layouts/sidebar.tt
  3. +5 −1 views/protest.tt
View
@@ -223,6 +223,18 @@ get '/protest/:hash' => sub {
};
};
+get '/protest' => sub {
+ template 'protest' => {
+ member => {
+ name => 'A concerned citizen',
+ },
+ last_receipt => {
+ total_litres => 50,
+ total_co2_reduction => 97,
+ }
+ };
+};
+
get '/protest/:hash/:choice' => sub {
my $hash = param('hash');
my $choice = param('choice') || '';
View
@@ -22,7 +22,7 @@
<li><a href="https://docs.google.com/document/d/1LJRiLseM-dMmISrUaiCrtF5w5qrSDMYRHQGB4U5lWcM/edit?hl=en_US">System Documentation</a></li>
<li><a href="https://docs.google.com/drawings/d/1IWXxF2EXOr7udmB8ELm885NAKKMmRGuSgupLbfakyFg/edit?hl=en_US">System Design</a></li>
</dl>
- [% ELSIF member %]
+ [% ELSIF member.id %]
<p>Welcome, [% member.name %] <a href="/logout">(Logout)</a></p>
<dl>
<dt><a href="/member/update-payment">
View
@@ -6,14 +6,18 @@
<p>Click a button below to help protest the unfair taxation issues affecting our wonderful fuel. We'll send a letter for you to the appropriate government officials.</p>
<div class="well">
+ [% IF hash %]
<h3>Send a protest letter every time you fill up?</h3>
<p>An example letter is bellow.</p>
<a class="btn btn-large btn-primary" href="/protest/[% hash %]/auto">Yes, send it when I buy fuel!</a>
<a class="btn btn-large" href="/protest/[% hash %]/once">No, Just send it this once.</a>
+ [% ELSE %]
+ <h3>Co-op members can send protest letters just by buying fuel!</h3>
+ [% END %]
</div>
<h2>Example Letter</h2>
- <p>Feel encouraged to copy this letter and customize it, and then send it off yourself too!</p>
+ <p>Feel encouraged to copy this letter and customize it, and send it off!</p>
<p>Send emails to: <code>Kevin.Falcon.MLA@leg.bc.ca, premier@gov.bc.ca</code></p>
<h4>Subject: Taxation of Biofuels</h4>
<blockquote>

0 comments on commit cc7479a

Please sign in to comment.