Skip to content

Commit

Permalink
Update funding display logic to show payment status based on project …
Browse files Browse the repository at this point in the history
…allocation success
  • Loading branch information
andrew committed Feb 27, 2025
1 parent 6a70af9 commit a77a7c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/funds/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@
<% elsif project_allocation.funding_source && project_allocation.funding_source.approved? %>
<p><%= bootstrap_icon 'piggy-bank-fill', width: 18, height: 18 %> <span class="visually-hidden">Funding:</span> <%= link_to project_allocation.funding_source.url, project_allocation.funding_source.url, target: :_blank %></p>
<% else %>
<% if project_allocation.invitation.present? %>
<% if project_allocation.success? %>
<p><%= bootstrap_icon 'piggy-bank-fill', width: 18, height: 18 %> <span class="visually-hidden">Funding:</span> Paid</p>
<% elsif project_allocation.invitation.present? %>
<% if project_allocation.project_funding_rejected %>
<p><%= bootstrap_icon 'piggy-bank-fill', width: 18, height: 18 %> <span class="visually-hidden">Funding:</span> Invitation Rejected on <%= project_allocation.invitation.rejected_at.strftime('%B %d, %Y') %></p>
<% elsif project_allocation.invitation_accepted? %>
Expand Down

0 comments on commit a77a7c3

Please sign in to comment.