user upgrades: handle the refunded status on show page.

This commit is contained in:
evazion
2021-01-01 21:23:03 -06:00
parent 48676789f0
commit 014199ec2b
3 changed files with 29 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
<%# user_upgrade %>
<% if policy(user_upgrade).receipt? %>
<%= link_to "View Receipt", receipt_user_upgrade_path(user_upgrade), target: "_blank" %>
<% end %>
<% if policy(user_upgrade).payment? %>
| <%= link_to "View Payment", payment_user_upgrade_path(user_upgrade), target: "_blank" %>
<% end %>