Skip to content

Instantly share code, notes, and snippets.

@allenp
Created August 5, 2011 01:40
Show Gist options
  • Save allenp/1126757 to your computer and use it in GitHub Desktop.
Save allenp/1126757 to your computer and use it in GitHub Desktop.
<h2 class="page-title">Payment Result</h2>
<div class="main">
<% if @viewdata.type.eql? 'change' %>
<div class="notice">Your plan was successfully changed <%= @viewdata.oldplan.blank? ? '' : 'from ' + @viewdata.oldplan + ' ' %> to <%= @viewdata.newplan.name %></div>
<% else if @viewdata.type.eql? 'new' %>
<div class="notice">You are now subscribed for the <span class="plan"> <%= @viewdata.newplan.name %></span> plan.</div>
<% end %>
<% end %>
<h3>Transaction Details</h3>
<table class="list">
<tr><td>Plan</td><td><%= @viewdata.newplan.name %></td></tr>
<tr><td>Starts:</td><td>Now</td></tr>
<tr><td>Paid:</td><td>$<%= @viewdata.newplan.amount %></td></tr>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment