Created
July 7, 2009 14:16
-
-
Save hojberg/142101 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= header %> | |
<h2 class="h1_1">Affiliates</h2> | |
<div class="c1_1"> | |
<table cellspacing="0" cellpadding="0" class="default_table" width="100%"> | |
<thead> | |
<tr> | |
<th>Affiliate</th> | |
<th>Last signup</th> | |
<th>Approved by</th> | |
<th> </th> | |
<th> </th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @partner_accounts.each do |partner| %> | |
<% background = cycle(zebra_stripe, '#fff') %> | |
<tr style="background: <%= background %>"> | |
<td><%= link_to(partner.name, edit_partner_path(partner)) %></td> | |
<td><%= display_time(partner.created_at) %></td> | |
<td> | |
<% if partner.approved? %> | |
<%=h partner.partner.approved_by_user.short_name %> | |
<% else %> | |
Affiliate not yet approved (<%= link_to("Approve now", pending_approval_partner_path(partner)) %>) | |
<% end %> | |
</td> | |
<td><%= link_to("View reports", detailed_report_partner_path(partner)) %></td> | |
<td><%= link_to("View payouts", payouts_path ) %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment