Updated bounties page.

This commit is contained in:
chris062689@gmail.com 2019-03-17 19:58:01 -04:00
parent 844c22566d
commit b25a0681a8

View file

@ -6,54 +6,78 @@
{{ .Content }} {{ .Content }}
</div> </div>
<section class="section">
<div class="content">
<h3 class="is-size-3">Pending Bounties</h3>
{{ range where .Site.Data.bounties "Status" "Unassigned" }}
<div style="margin-bottom: 12px;">
<div class="has-text-weight-semibold">{{ .Description }}</div>
<div style="margin-left: 48px;">
<table class="table is-fullwidth"> <table class="table is-fullwidth">
<thead> <thead>
<tr> <tr>
<th>Date Submitted</th> <th class="has-text-weight-normal">Date Submitted</th>
<th>Requester</th> <th class="has-text-weight-normal">Requester</th>
<th>Developer</th> <th class="has-text-weight-normal">Amount</th>
<th>Status</th> <th class="has-text-weight-normal">Expires Date</th>
<th>Amount</th>
<th>Description</th>
<th>Payment Status</th>
<th>Developer Response</th>
<th>Date Expires</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{ range .Site.Data.bounties }} {{ range .Requestors }}
<tr> <tr>
<td> <td>{{ .DateSubmitted }}</td>
{{ .DateSubmitted }} <td>{{ .Name }}</td>
</td> <td>{{ .Amount }}</td>
<td> <td>{{ .DateExpires }}</td>
{{ .Requester }}
</td>
<td>
{{ .Developer }}
</td>
<td>
{{ .Status }}
</td>
<td>
{{ .Amount }}
</td>
<td>
{{ .Description }}
</td>
<td>
{{ .PaymentStatus }}
</td>
<td>
{{ .DeveloperResponse }}
</td>
<td>
{{ .DateExpires }}
</td>
</tr> </tr>
{{ end }} {{ end }}
</tbody> </tbody>
</table> </table>
</section> </div>
</div>
{{ end }}
</div>
</section>
<section class="section">
<div class="content">
<h3 class="is-size-3">Completed Bounties</h3>
{{ range where .Site.Data.bounties "Status" "Completed" }}
<div class="py-3">
<div class="has-text-weight-semibold">{{ .Description }}</div>
<div>{{ .Status }} by {{ .Developer }} - {{ .Response }}</div>
<div style="margin-left: 48px;">
<table class="table is-fullwidth">
<thead>
<tr>
<th class="has-text-weight-normal">Date Submitted</th>
<th class="has-text-weight-normal">Requester</th>
<th class="has-text-weight-normal">Amount</th>
<th class="has-text-weight-normal">Paid</th>
<th class="has-text-weight-normal">Expires Date</th>
</tr>
</thead>
<tbody>
{{ range .Requestors }}
<tr>
<td>{{ .DateSubmitted }}</td>
<td>{{ .Name }}</td>
<td>{{ .Amount }}</td>
{{ if eq .Paid true }}
<td>Yes</td>
{{ else }}
<td>No</td>
{{ end }}
<td>{{ .DateExpires }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
{{ end }}
</div>
</section>
</div> </div>
{{ end }} {{ end }}