2020-07-28 20:31:07 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-08-08 06:12:33 +00:00
|
|
|
|
2020-08-10 05:47:53 +00:00
|
|
|
<div class="container">
|
2020-08-08 06:12:33 +00:00
|
|
|
<div class="post" style="text-align:center;">
|
|
|
|
<a href="/">< Go Back</a>
|
2020-07-28 20:31:07 +00:00
|
|
|
{% if post.hidden %}
|
2020-08-08 06:12:33 +00:00
|
|
|
<h2>You cannot see this post</h2>
|
2020-07-28 20:31:07 +00:00
|
|
|
{% else %}
|
2020-08-10 22:11:53 +00:00
|
|
|
|
|
|
|
<!-- Post Info -->
|
2020-08-08 06:12:33 +00:00
|
|
|
<h1>{{ post.title }}</h1>
|
|
|
|
<p class="subtitle">{{ post.text }}</p>
|
2020-12-04 07:17:58 +00:00
|
|
|
{% if not post.approved %}
|
|
|
|
<a href="{{ url_for('post.approve', id=post.id) }}"><button type="button" name="button">Approve</button></a>
|
2020-12-07 17:29:34 +00:00
|
|
|
<a href="{{ url_for('post.delete', id=post.id) }}"><button type="button" name="button">Reject</button></a>
|
2020-12-04 07:17:58 +00:00
|
|
|
{% endif %}
|
2020-10-25 07:00:20 +00:00
|
|
|
<p class="subtext">Submitted by <i><u><a href="/?submitter={{ post.submitter }}">{{ post.submitter }}</a></u></i> at <i>{{ post.timestamp }}</i></p>
|
2020-08-10 05:47:53 +00:00
|
|
|
<br>
|
2020-08-16 09:24:14 +00:00
|
|
|
<img src="{{ url_for('post.uploaded_file', filename=post.image_name) }}" width=600/ style="margin-bottom:1em;border-radius:4px;">
|
2020-08-10 05:47:53 +00:00
|
|
|
<hr>
|
2020-08-10 22:11:53 +00:00
|
|
|
|
|
|
|
<!-- Payments -->
|
|
|
|
<h2>Payments</h2>
|
2020-08-10 06:59:45 +00:00
|
|
|
<p style="word-break:break-all;">Vote for this post by sending WOW to the following address:<br><i>{{ address }}</i></p>
|
2020-12-21 01:04:27 +00:00
|
|
|
{% if qr_code %}
|
|
|
|
<img src="data:image/png;base64,{{ qr_code }}" width=180 class="center"><br /><br />
|
|
|
|
{% endif %}
|
2020-08-11 08:18:17 +00:00
|
|
|
<h5>WOW Received</h5>
|
|
|
|
{% if transfers.in %}
|
|
|
|
<ul>
|
|
|
|
{% for transfer in transfers.in %}
|
|
|
|
<li style="word-break:break-all;list-style:none;">{{ transfer.amount / 100000000000 }} WOW (<a href="https://wownero.club/transaction/{{ transfer.txid }}" target="_blank">{{ transfer.txid }}</a>)</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p>No WOW received yet. Show this post some love!</p>
|
|
|
|
{% endif %}
|
|
|
|
<h5>WOW Sent</h5>
|
|
|
|
{% if transfers.out %}
|
|
|
|
<ul>
|
|
|
|
{% for transfer in transfers.out %}
|
|
|
|
<li>{{ transfer.amount / 100000000000 }} WOW (<a href="https://wownero.club/transaction/{{ transfer.txid }}" target="_blank">{{ transfer.txid }}</a>)</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p>No payouts yet.</p>
|
2020-08-10 22:11:53 +00:00
|
|
|
{% endif %}
|
2020-08-10 05:47:53 +00:00
|
|
|
<hr>
|
2020-08-10 22:11:53 +00:00
|
|
|
|
2020-07-28 20:31:07 +00:00
|
|
|
{% endif %}
|
2020-08-10 22:11:53 +00:00
|
|
|
|
2020-12-29 20:41:10 +00:00
|
|
|
{% if config.DEBUG %}
|
|
|
|
{{ post.show() }}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-09-24 05:20:27 +00:00
|
|
|
{#
|
2020-09-24 05:19:03 +00:00
|
|
|
{% if "auth" in session %}
|
|
|
|
{% if session.auth.preferred_username == post.submitter %}
|
|
|
|
<hr><a href="{{ url_for('post.delete', id=post.id) }}"><button class="btn btn-danger">Delete Post</button></a>
|
|
|
|
{% endif %}
|
2020-09-24 05:10:24 +00:00
|
|
|
{% endif %}
|
2020-09-24 05:20:27 +00:00
|
|
|
#}
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-28 20:31:07 +00:00
|
|
|
{% endblock %}
|