|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
{% include 'includes/head.html' %}
|
|
|
|
<body>
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
{% include 'includes/navbar.html' %}
|
|
|
|
|
|
|
|
{% if meme %}
|
|
|
|
{% if meme.meta_ipfs_hash %}
|
|
|
|
{% set meta_url = config.IPFS_SERVER + "/ipfs/" + meme.meta_ipfs_hash %}
|
|
|
|
{% set meme_url = config.IPFS_SERVER + "/ipfs/" + meme.meme_ipfs_hash %}
|
|
|
|
{% else %}
|
|
|
|
{% set meta_url = "" %}
|
|
|
|
{% set meme_url = url_for('meta.uploaded_file', filename=meme.file_name, _external=True) %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div id="screen">
|
|
|
|
<div class="screen">
|
|
|
|
{% if meme.file_name.endswith('mp4') %}
|
|
|
|
<video style="max-height: 60vh!important;max-width:100%;" {% if not request.MOBILE %}autoplay{% else %}controls{% endif %} muted loop>
|
|
|
|
<source src="{{ meme_url }}" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ meme_url }}" id="memeImage" />
|
|
|
|
{% endif %}
|
|
|
|
</br>
|
|
|
|
<p>Title: <strong>{{ meme.title }}</strong></p>
|
|
|
|
<p>Description: <strong>{{ meme.description }}</strong></p>
|
|
|
|
<p>Creator handle: <a href="{{ url_for('user.show', handle=meme.creator_handle) }}" up-follow=".container">{{ meme.creator_handle }}</a></p>
|
|
|
|
{% if meme.meta_ipfs_hash %}
|
|
|
|
<p>Meta IPFS: <a href="{{ meta_url }}" target=_self up-preload up-follow=".container">{{ meme.meta_ipfs_hash }}</a></p>
|
|
|
|
{% endif %}
|
|
|
|
{% if meme.meme_ipfs_hash %}
|
|
|
|
<p>Meme IPFS: <a href="{{ meme_url }}" target=_self up-preload up-follow=".container">{{ meme.meme_ipfs_hash }}</a></p>
|
|
|
|
{% endif %}
|
|
|
|
<p>Meme ID: <code>{{ meme }}</code></p>
|
|
|
|
{% if not meme.meta_ipfs_hash %}
|
|
|
|
</br>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<a class="button is-info is-12 column" href="{{ url_for('meme.approve', meme_id=meme.id, action='approve') }}">Approve</a>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<a class="button is-danger is-12 column" href="{{ url_for('meme.approve', meme_id=meme.id, action='deny') }}">Deny</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% include 'includes/footer.html' %}
|
|
|
|
</body>
|
|
|
|
</html>
|