2019-06-18 02:57:04 +01:00
|
|
|
<!-- Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
See LICENSE for copying information. -->
|
|
|
|
|
|
|
|
{{define "freeOffers"}}
|
|
|
|
<div class="offers-table mt-2 mb-5 container">
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col col-heading">Name</div>
|
2019-07-23 17:08:07 +01:00
|
|
|
<div class="col col-heading">Give Credit</div>
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="col col-heading">Redeemable Capacity</div>
|
|
|
|
<div class="col col-heading">Created</div>
|
|
|
|
<div class="col col-heading">Expiration</div>
|
|
|
|
<div class="col col-heading">Status</div>
|
|
|
|
</div><hr>
|
|
|
|
<div class="row offer-heading ">
|
2019-07-10 18:12:40 +01:00
|
|
|
<p class="offer-type">Default Offer</p>
|
2019-06-28 15:34:10 +01:00
|
|
|
</div>
|
2019-07-10 18:12:40 +01:00
|
|
|
{{$defaultOffer := .FreeCredits.Default}}
|
|
|
|
{{if not $defaultOffer.IsEmpty}}
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="row data-row">
|
|
|
|
<div class="col ml-3">{{$defaultOffer.Name}}</div>
|
2019-07-23 17:08:07 +01:00
|
|
|
<div class="col">${{$defaultOffer.InviteeCredit}}</div>
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="col">{{$defaultOffer.RedeemableCap}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" $defaultOffer.CreatedAt}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" $defaultOffer.ExpiresAt}}</div>
|
|
|
|
<div class="col"></div>
|
|
|
|
</div><hr>
|
2019-07-10 18:12:40 +01:00
|
|
|
{{end}}
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="row offer-heading ">
|
2019-07-10 18:12:40 +01:00
|
|
|
<p class="offer-type">Current Offer</p>
|
2019-06-28 15:34:10 +01:00
|
|
|
</div>
|
2019-07-10 18:12:40 +01:00
|
|
|
{{$currentOffer := .FreeCredits.Active}}
|
|
|
|
{{if not $currentOffer.IsEmpty}}
|
2019-06-18 02:57:04 +01:00
|
|
|
<div class="row data-row">
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="col ml-3">{{$currentOffer.Name}}</div>
|
2019-07-23 17:08:07 +01:00
|
|
|
<div class="col">${{$currentOffer.InviteeCredit}}</div>
|
2019-06-28 15:34:10 +01:00
|
|
|
<div class="col">{{$currentOffer.RedeemableCap}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" $currentOffer.CreatedAt}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" $currentOffer.ExpiresAt}}</div>
|
|
|
|
<div class="col stop-offer">
|
2019-07-10 18:12:40 +01:00
|
|
|
<span data-toggle="modal" data-target=".stop-free-credit-modal">
|
2019-06-28 15:34:10 +01:00
|
|
|
<strong>Live ·</strong>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div><hr>
|
2019-07-10 18:12:40 +01:00
|
|
|
{{end}}
|
|
|
|
{{template "stopFreeCredit" .}}
|
|
|
|
<div class="row offer-heading ">
|
2019-07-25 23:06:23 +01:00
|
|
|
<p class="offer-type">Discontinued Offers</p>
|
2019-07-10 18:12:40 +01:00
|
|
|
</div>
|
|
|
|
{{range .FreeCredits.Done}}
|
|
|
|
<div class="row data-row">
|
|
|
|
<div class="col ml-3">{{.Name}}</div>
|
2019-07-23 17:08:07 +01:00
|
|
|
<div class="col">${{.InviteeCredit}}</div>
|
2019-07-10 18:12:40 +01:00
|
|
|
<div class="col">{{.RedeemableCap}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" .CreatedAt}}</div>
|
|
|
|
<div class="col">{{printf "%.10s" .ExpiresAt}}</div>
|
|
|
|
<div class="col">off</div>
|
|
|
|
</div><hr>
|
2019-06-28 15:34:10 +01:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-06-18 02:57:04 +01:00
|
|
|
{{end}}
|