mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
- Switch to integrated addresses (address+payment_id) -> `make_integrated_address @ RPC)
- Changed homegrown caching solution to use flask extension `flask_cache` instead - Remove detection of out-going (sent) funds, needs to be manually registered in table "payouts" now - Updated Flask version
This commit is contained in:
parent
c0b972edde
commit
401c26e85b
18 changed files with 311 additions and 308 deletions
|
@ -26,7 +26,7 @@
|
|||
When you encounter problems; please visit #wownero on chat.freenode.org
|
||||
</p>
|
||||
<p>
|
||||
AEON (<a target="_blank" href="https://github.com/camthegeek">camthegeek</a>) has contributed commits to <a href="http://github.com/skftn/wownero-wfs">upstream</a>; WOW is grateful.
|
||||
AEON (<a target="_blank" href="https://github.com/camthegeek">camthegeek</a>) has contributed commits <a href="http://github.com/skftn/wownero-wfs">upstream</a>; WOW is grateful.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<!-- Footer -->
|
||||
<footer class="bg-dark footer">
|
||||
<div class="container">
|
||||
<p class="m-0 text-center text-white">WOW 2018</p>
|
||||
<p class="m-0 text-center text-white">WOW 2018-2020</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
<div class="col-lg-4">
|
||||
<form class="form-horizontal" action="" method=post>
|
||||
<div class="form-group">
|
||||
<label class="sr-only" for="inlineFormInput">Name</label>
|
||||
|
@ -46,10 +46,13 @@
|
|||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary btn-sm">Login</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<small>Forgot your password? Out of luck! Create a new account lol</small>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<a href="/register">Or register here</a>
|
||||
<a href="/register">Register here</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,20 +1,28 @@
|
|||
{% macro tx_item(tx) %}
|
||||
<li class="list-group-item tx_item">
|
||||
<span class="datetime">
|
||||
{{tx['datetime'].strftime('%Y-%m-%d %H:%M')}}
|
||||
</span>
|
||||
|
||||
<span class="height">
|
||||
<b>Blockheight</b>:
|
||||
{% if tx['type'] == 'pool' %}
|
||||
soon^tm
|
||||
{% else %}
|
||||
{{tx['height']}}
|
||||
{% endif %}
|
||||
{% if tx['type'] == 'pool' %}
|
||||
soon^tm
|
||||
{% elif tx['type'] == 'out' %}
|
||||
<small>hidden</small>
|
||||
{% else %}
|
||||
{{tx['block_height']}}
|
||||
{% endif %}
|
||||
</span>
|
||||
<br>
|
||||
|
||||
{% if tx['type'] in ['in', 'pool'] %}
|
||||
<a target="_blank" href="https://explore.wownero.com/tx/{{tx['txid']}}">{{tx['txid'][:32]}}...</a>
|
||||
{% else %}
|
||||
{% set lulz = [
|
||||
'vodka', 'hookers', 'booze', 'strippers', 'new lambo',
|
||||
'new ferrari', 'new villa', 'new vacation home', 'new tesla',
|
||||
'new watch', 'new home cinema set', 'throphy wife', 'drugs']
|
||||
%}
|
||||
<a style="font-size:11px;" href="#">Sent to author. Enjoy the {{ lulz|random }}!</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="amount{% if tx['type'] in ['pool', 'in'] %} in{% endif %}">
|
||||
{% if tx['type'] in ['in', 'pool'] %}
|
||||
+
|
||||
|
|
|
@ -97,11 +97,13 @@
|
|||
{{proposal.balance['available']|round(3) or 0 }} WOW Raised
|
||||
{% set remaining = proposal.funds_target - proposal.balance['available']|float|round(3) %}
|
||||
|
||||
<small>
|
||||
{% if remaining > 0 %}
|
||||
({{ (proposal.funds_target - proposal.balance['available']|float|round(3)|int) }} WOW until goal)
|
||||
{% elif remaining < 0 %}
|
||||
({{ (proposal.balance['available']-proposal.funds_target|float|round(3)|int) }} WOW past goal!)
|
||||
{% endif %}
|
||||
</small>
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-warning progress-bar" style="width: {{proposal.balance['pct']}}%;">
|
||||
|
@ -113,15 +115,16 @@
|
|||
|
||||
<br/>
|
||||
<div class="col-lg-8">
|
||||
{{proposal.spends['spent']|round(3) or 0}} WOW Paid out
|
||||
{{ proposal.spends['amount'] }} WOW Paid out <small>({{ proposal.spends['pct']|round(1) }}%)</small>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-warning progress-bar" style="width: {{proposal.spends['remaining_pct']}}%;">
|
||||
<!-- @todo: spends remaining pct -->
|
||||
<div class="progress-bar progress-warning progress-bar" style="width: {{ proposal.spends['pct'] }}%;">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
{{(proposal.balance['available']-proposal.spends['spent']) |round(3) or 0}} WOW Available to Payout
|
||||
{{ (proposal.balance['available']-proposal.spends['amount']) |round(3) or 0}} WOW Available for payout :-)
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-warning progress-bar" style="width: {{proposal.balance['remaining_pct']}}%;">
|
||||
</div>
|
||||
|
@ -185,15 +188,15 @@
|
|||
<!-- /.row -->
|
||||
{% endif %}
|
||||
|
||||
{% if proposal.spends['txs'] %}
|
||||
{% if proposal.payouts %}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card my-6" id="incoming_txs">
|
||||
<h5 class="card-header">Outgoing transactions <small>({{proposal.spends['txs']|length}})</small></h5>
|
||||
<h5 class="card-header">Outgoing transactions</h5>
|
||||
<div class="card-body">
|
||||
<ul class="list-group">
|
||||
{% for tx in proposal.spends['txs'] %}
|
||||
{{ tx_item(tx) }}
|
||||
{% for payout in proposal.payouts %}
|
||||
{{ tx_item(payout.as_tx) }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue