mirror of https://git.sr.ht/~sircmpwn/fosspay
parent
86ca065ab3
commit
76aae6d57e
@ -0,0 +1,32 @@ |
||||
{% extends "layout.html" %} |
||||
{% block body %} |
||||
<div class="well"> |
||||
<div class="container"> |
||||
<p class="pull-right"> |
||||
<a class="btn btn-primary" href="..">Donate Again</a> |
||||
<a class="btn btn-default" href="logout">Log Out</a> |
||||
</p> |
||||
<h1>Your Donations</h1> |
||||
</div> |
||||
</div> |
||||
<div class="container"> |
||||
<table class="table"> |
||||
<thead> |
||||
<tr> |
||||
<th>Date</th> |
||||
<th>Amount</th> |
||||
<th>Project</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
{% for donation in one_times(user) %} |
||||
<tr> |
||||
<td>{{ donation.created.strftime("%Y-%m-%d") }}</td> |
||||
<td>${{ "{:.2f}".format(donation.amount / 100) }}</td> |
||||
<td>{{ donation.project.name if donation.project else "Not specified" }}</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
</div> |
||||
{% endblock %} |
Loading…
Reference in new issue