 22adb4d5fd
			
		
	
	
		22adb4d5fd
		
	
	
	
	
		
			
			The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later with some specific files to be licensed under the one of two licenses: CC0-1.0 LGPL-3.0-or-later This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
		
			
				
	
	
		
			55 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| <%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
 | |
| <!-- partial nonprofits/recurring_donations/main_panel -->
 | |
| 
 | |
| <div class='mainPanel'>
 | |
| 	<!--= add_class_if loading 'u-halfOpacity' -->
 | |
| 
 | |
| 	<table class='table--plaid clickable'>
 | |
| 		<thead>
 | |
| 			<th>Amount</th>
 | |
| 			<th>Start Date</th>
 | |
| 			<th>Donor</th>
 | |
| 			<th class='hiddenWhenExpanded'>Interval</th>
 | |
| 			<th class='hiddenWhenExpanded'>All-Time Total</th>
 | |
| 		</thead>
 | |
| 
 | |
| 		<tbody>
 | |
|       <!--= hide_if (empty recurring_donations.data) -->
 | |
| 			<tr>
 | |
| 				<!--= repeat recurring_donations.data -->
 | |
| 				<!--= on 'click' (if (has_attr 'data-selected') close_side_panel (ajax_details.fetch this.id)) -->
 | |
| 
 | |
| 				<td class='table-bigNum'>
 | |
| 					<span class='dollar'>$</span>
 | |
| 					<!--= put (cents_to_dollars this.amount) -->
 | |
| 					<small class='u-color--red'><!--= show_if (> this.n_failures 2) -->
 | |
| 						<strong>
 | |
| 						(3 payment failures)
 | |
| 						</strong>
 | |
| 					</small>
 | |
| 				</td>
 | |
| 
 | |
| 				<td>
 | |
| 					<small><!--= put (readable_date this.start_date) --></small>
 | |
| 				</td>
 | |
| 
 | |
| 				<td class='table-bigText'>
 | |
| 					<!--= put (any this.name this.email (cat 'Supporter ' this.supporter_id)) -->
 | |
| 				</td>
 | |
| 
 | |
| 				<td class='hiddenWhenExpanded'>
 | |
| 					<!--= put (readable_interval this.interval this.time_unit) -->
 | |
| 				</td>
 | |
| 
 | |
| 				<td class='table-bigNum hiddenWhenExpanded'>
 | |
| 					<span class='dollar'>$</span>
 | |
| 					<!--= put (cents_to_dollars this.total_given) -->
 | |
| 				</td>
 | |
| 			</tr>
 | |
| 
 | |
| 		</tbody>
 | |
| 	</table>
 | |
| 	<%= render 'components/show_more', scope: 'recurring_donations' %>
 | |
| </div>
 | |
| 
 | |
| <!-- end partial nonprofits/recurring_donations/main_panel -->
 |