Skip to content

Commit

Permalink
view states for fulfillments
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Jun 30, 2020
1 parent c38dc4c commit 4cea86b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
VIEW_BLOCK_API_KEY = env('VIEW_BLOCK_API_KEY', default='YOUR-VIEW-BLOCK-KEY')
FORTMATIC_LIVE_KEY = env('FORTMATIC_LIVE_KEY', default='YOUR-SupEr-SecRet-LiVe-FoRtMaTiC-KeY')
FORTMATIC_TEST_KEY = env('FORTMATIC_TEST_KEY', default='YOUR-SupEr-SecRet-TeSt-FoRtMaTiC-KeY')
PYPL_CLIENT_ID = env('PYPL_CLIENT_ID', default='YOUR-SupEr-SecRet-TeSt-PYPL-KeY')
PYPL_CLIENT_ID = env('PYPL_CLIENT_ID', default='')

# Ratelimit
RATELIMIT_ENABLE = env.bool('RATELIMIT_ENABLE', default=True)
Expand Down
19 changes: 12 additions & 7 deletions app/dashboard/templates/bounty/details2.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ <h5 class="font-body font-weight-semibold">{% trans "SUBMISSIONS" %}</h5>
<span class="my-auto px-3 font-smaller-2 font-weight-semibold">
<i class="fas fa-check mr-2 font-caption"></i> Bounty Paid
</span>
<p v-if="fulfillment.payout_type == 'qr'" class="font-smaller-4 my-0">
<p v-if="fulfillment.payout_type !== 'fiat'" class="font-smaller-4 my-0">
<a :href="getTransactionURL(fulfillment.token_name, fulfillment.payout_tx_id)" target="_blank">([[ fulfillment.payout_tx_id | truncateHash ]])</a>
<button class="btn btn-sm my-0 px-1" @click="copyTextToClipboard(fulfillment.payout_tx_id)">
<i class="far fa-clipboard-check"></i>
Expand All @@ -283,6 +283,12 @@ <h5 class="font-body font-weight-semibold">{% trans "SUBMISSIONS" %}</h5>
<button class="btn btn-sm btn-outline-gc-blue my-auto px-3 font-smaller-2 font-weight-semibold">
<i class="fas fa-spinner fa-spin mr-2 font-caption"></i>Pending Verification
</button>
<p v-if="fulfillment.payout_type !== 'fiat'" class="font-smaller-4 my-0">
<a :href="getTransactionURL(fulfillment.token_name, fulfillment.payout_tx_id)" target="_blank">([[ fulfillment.payout_tx_id | truncateHash ]])</a>
<button class="btn btn-sm my-0 px-1" @click="copyTextToClipboard(fulfillment.payout_tx_id)">
<i class="far fa-clipboard-check"></i>
</button>
</p>
</template>

<template v-else>
Expand All @@ -305,7 +311,7 @@ <h5 class="font-body font-weight-semibold">{% trans "SUBMISSIONS" %}</h5>
<span class="my-auto px-3 font-smaller-2 font-weight-semibold">
<i class="fas fa-check mr-2 font-caption"></i> Bounty Paid
</span>
<p class="font-smaller-4 my-0">
<p v-if="fulfillment.payout_type !== 'fiat'" class="font-smaller-4 my-0">
<a :href="getTransactionURL(fulfillment.token_name, fulfillment.payout_tx_id)" target="_blank">([[ fulfillment.payout_tx_id | truncateHash ]])</a>
<button class="btn btn-sm my-0 px-1" @click="copyTextToClipboard(fulfillment.payout_tx_id)">
<i class="far fa-clipboard-check"></i>
Expand All @@ -316,7 +322,7 @@ <h5 class="font-body font-weight-semibold">{% trans "SUBMISSIONS" %}</h5>
<button class="btn btn-sm btn-outline-gc-blue my-auto px-3 font-smaller-2 font-weight-semibold">
<i class="fas fa-spinner fa-spin mr-2 font-caption"></i>Pending Verification
</button>
<p class="font-smaller-4 my-0">
<p v-if="fulfillment.payout_type !== 'fiat'" class="font-smaller-4 my-0">
<a :href="getTransactionURL(fulfillment.token_name, fulfillment.payout_tx_id)" target="_blank">([[ fulfillment.payout_tx_id | truncateHash ]])</a>
<button class="btn btn-sm my-0 px-1" @click="copyTextToClipboard(fulfillment.payout_tx_id)">
<i class="far fa-clipboard-check"></i>
Expand Down Expand Up @@ -899,10 +905,9 @@ <h3>{{ noscript.keywords }}</h3>
<p>{{ noscript.issue_description_text }}</p>
</noscript>

<!-- <script src="https://www.paypal.com/sdk/js?client-id=ARv6LvORvfM1li08HYFgy9HLH919lF7KP8Piqfia1HyQ4y7hg6oRgz5C8K03LLLzKhjn91-Dpz2pWkoK"></script> -->

<script src="https://www.paypal.com/sdk/js?client-id={{PYPL_CLIENT_ID}}"></script>

{% if PYPL_CLIENT_ID %}
<script src="https://www.paypal.com/sdk/js?client-id={{PYPL_CLIENT_ID}}"></script>
{% endif %}
<script>
document.issueURL = '{{ issueURL }}';

Expand Down

0 comments on commit 4cea86b

Please sign in to comment.