mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Include QR codes on the proposal page; added API route
This commit is contained in:
parent
75c7f49842
commit
531072d2aa
15 changed files with 191 additions and 21 deletions
|
@ -66,12 +66,24 @@
|
|||
]
|
||||
}</pre>
|
||||
</div>
|
||||
|
||||
<div class="api_container" id="api_qr_generation">
|
||||
<h5><small>GET</small> <code>/api/1/qr</code></h5>
|
||||
<hr>
|
||||
<p>
|
||||
WOW address to QR code generation. Returns 300x300 png.
|
||||
</p>
|
||||
|
||||
<b>Example:</b>
|
||||
<br>
|
||||
<a target="_blank" href="https://funding.wownero.com/api/qr?address=WW44Zvkfv76ezeFn5M4ijAdjyCe7dK48bjaFixvyJoeyP1pmkn2MbLugchM8hV6czL4hBhjnKTP4W9HfHyNUqBch2y2R4DT3v">
|
||||
link
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'sidebar.html' %}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
{% endblock %}
|
||||
|
|
|
@ -95,20 +95,20 @@
|
|||
<hr>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
{{proposal.balance['available']|round(3) or 0 }} WOW Raised
|
||||
{% if (proposal.funds_target-proposal.balance['available']|float|round(3)) > 0 %}
|
||||
{{proposal.balance['available']|round(3) or 0 }} WOW Raised
|
||||
{% if (proposal.funds_target-proposal.balance['available']|float|round(3)) > 0 %}
|
||||
({{ (proposal.funds_target-proposal.balance['available']|float|round(3)|int) }} WOW until goal)
|
||||
{% else %}
|
||||
{% else %}
|
||||
({{ (proposal.balance['available']-proposal.funds_target|float|round(3)|int) }} WOW past goal!)
|
||||
{% endif %}
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-warning progress-bar" style="width: {{proposal.balance['pct']}}%;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
|
||||
<br/>
|
||||
<div class="col-lg-8">
|
||||
{{proposal.spends['spent']|round(3) or 0}} WOW Paid out
|
||||
|
@ -134,6 +134,12 @@
|
|||
Donation address:
|
||||
<pre class="proposal_address">{% if proposal.addr_donation %}{{ proposal.addr_donation }}{% else %}<small>None generated yet</small>{% endif %}</pre>
|
||||
</div>
|
||||
|
||||
{% if proposal.addr_donation %}
|
||||
<div class="col-lg-12">
|
||||
<img class="proposal_qr" src="/api/1/qr?address={{ proposal.addr_donation }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue