show approve/deny buttons on card and include title

main
lza_menace 3 years ago
parent d152a6dffb
commit 052c1d1c60

@ -28,15 +28,26 @@
{% endif %} {% endif %}
</div> </div>
<div class="media-content"> <div class="media-content">
<p class="title is-4"><a href="{{ url_for('user.show', handle=meme.user.handle) }}">{{ meme.user.handle }}</a></p> <p class="title is-4">{{ meme.title }}</p>
<p class="subtitle is-6"><a href="{{ meme.user.public_address | show_snowtrace }}" target="_blank">{{ meme.user.public_address | shorten_address }}</a></p> <p class="subtitle is-6">
<a href="{{ url_for('user.show', handle=meme.user.handle) }}">{{ meme.user.handle }}</a>
<a href="{{ meme.user.public_address | show_snowtrace }}" target="_blank">({{ meme.user.public_address | shorten_address }})</a>
</p>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
{{ meme.description }}
<br>
<time datetime="2016-1-1">{{ meme.create_date.strftime('%H:%M UTC - %d %b %Y') }}</time> <time datetime="2016-1-1">{{ meme.create_date.strftime('%H:%M UTC - %d %b %Y') }}</time>
{% if not meme.approved %}
<div class="columns mt-2">
<div class="column">
<a class="button is-success" href="{{ url_for('meme.approve', meme_id=meme.id, action='approve') }}">Approve</a>
</div>
<div class="column">
<a class="button is-danger" href="{{ url_for('meme.approve', meme_id=meme.id, action='deny') }}">Deny</a>
</div>
</div>
{% endif %}
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save