@ -3,53 +3,78 @@
{% block content %}
{% block content %}
< div class = "container" >
< div class = "container" >
< div class = "post" style = "text-align:center;" >
< div class = "post" style = "text-align:center;" >
< a href = "/" > < Go Back < / a >
< nav class = "breadcrumb is-centered" aria-label = "breadcrumbs" >
< ul >
< li > < a href = "/" > All Posts< / a > < / li >
< li class = "is-active" > < a href = "#" aria-current = "page" > Post {{ post.id }}< / a > < / li >
< / ul >
< / nav >
{% if post.hidden %}
{% if post.hidden %}
< h2 > You cannot see this post< / h2 >
< h2 > You cannot see this post< / h2 >
{% else %}
{% else %}
<!-- Post Info -->
<!-- Post Info -->
< h1 > {{ post.title }}< / h1 >
< section class = "section" >
< p class = "subtitle" > {{ post.text }}< / p >
< div class = "content" >
{% if not post.approved %}
< h1 > {{ post.title }}< / h1 >
< a href = "{{ url_for('post.approve', id=post.id) }}" > < button type = "button" name = "button" > Approve< / button > < / a >
< p > {{ post.text }}< / p >
< a href = "{{ url_for('post.delete', id=post.id) }}" > < button type = "button" name = "button" > Reject< / button > < / a >
{% if not post.approved %}
{% endif %}
< a href = "{{ url_for('post.approve', id=post.id) }}" > < button type = "button" name = "button" > Approve< / button > < / a >
< p class = "subtext" > Submitted by < i > < u > < a href = "/?submitter={{ post.submitter }}" > {{ post.submitter }}< / a > < / u > < / i > at < i > {{ post.timestamp }}< / i > < / p >
< a href = "{{ url_for('post.delete', id=post.id) }}" > < button type = "button" name = "button" > Reject< / button > < / a >
< br >
{% endif %}
< img src = "{{ url_for('post.uploaded_file', filename=post.image_name) }}" width = 600/ style = "margin-bottom:1em;border-radius:4px;" >
< p > Submitted by < i > < u > < a href = "/?submitter={{ post.submitter }}" > {{ post.submitter }}< / a > < / u > < / i > at < i > {{ post.timestamp }}< / i > < / p >
< hr >
< img src = "{{ url_for('post.uploaded_file', filename=post.image_name) }}" width = 600/ style = "border-radius:4px;" >
< / div >
< / section >
<!-- Payments -->
<!-- Payments -->
< h2 > Payments< / h2 >
< section class = "section content" >
< p style = "word-break:break-all;" > Vote for this post by sending WOW to the following address:< br > < i > {{ address }}< / i > < / p >
< h3 > Payments< / h3 >
{% if qr_code %}
< p style = "word-break:break-all;" > Vote for this post by sending WOW to the following address:< br > < i > {{ address }}< / i > < / p >
< img src = "data:image/png;base64,{{ qr_code }}" width = 180 class = "center" > < br / > < br / >
{% if qr_code %}
{% endif %}
< img src = "data:image/png;base64,{{ qr_code }}" width = 180 class = "center" > < br / > < br / >
< h5 > WOW Received< / h5 >
{% endif %}
{% if transfers.in %}
< ul >
< div class = "columns" >
{% for transfer in transfers.in %}
< div class = "column content" >
{% if transfer.amount > 0 %}
< h4 > WOW Received< / h4 >
< 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 >
{% if transfers.in %}
< ul >
{% for transfer in transfers.in %}
{% if transfer.amount > 0 %}
< li >
{{ transfer.amount / 100000000000 }} WOW
(< a href = "https://wownero.club/transaction/{{ transfer.txid }}" target = "_blank" > {{ transfer.txid | shorten_address }}< / a > )
- {{ transfer.timestamp | humanize }}
< / li >
{% endif %}
{% endfor %}
< / ul >
{% else %}
< p > No WOW received yet. Show this post some love!< / p >
{% endif %}
{% endif %}
{% endfor %}
< / div >
< / ul >
< div class = "column content" >
{% else %}
< h4 > WOW Sent< / h4 >
< p > No WOW received yet. Show this post some love!< / p >
{% if transfers.out %}
{% endif %}
< ul >
< h5 > WOW Sent< / h5 >
{% for transfer in transfers.out %}
{% if transfers.out %}
< li >
< ul >
{{ transfer.amount / 100000000000 }} WOW
{% for transfer in transfers.out %}
(< a href = "https://wownero.club/transaction/{{ transfer.txid }}" target = "_blank" > {{ transfer.txid | shorten_address }}< / a > )
< li > {{ transfer.amount / 100000000000 }} WOW (< a href = "https://wownero.club/transaction/{{ transfer.txid }}" target = "_blank" > {{ transfer.txid }}< / a > )< / li >
- {{ transfer.timestamp | humanize }}
{% endfor %}
< / li >
< / ul >
{% endfor %}
{% else %}
< / ul >
< p > No payouts yet.< / p >
{% else %}
{% endif %}
< p > No payouts yet.< / p >
< hr >
{% endif %}
< / div >
< / div >
< / section >
{% endif %}
{% endif %}
@ -57,13 +82,6 @@
{{ post.show() }}
{{ post.show() }}
{% endif %}
{% endif %}
{#
{% 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 %}
{% endif %}
#}
< / div >
< / div >
< / div >
< / div >