2020-03-10 15:21:18 -07:00

47 lines
1.4 KiB
HTML

{% extends 'base.html' %}
{% block content %}
{% if error %}
{{ error }}
<br/>
<br/>
{% endif %}
<div class="row">
<div class="col-2">
<img src="{{ product.icon.url }}" class="img-fluid" \>
</div>
<div class="col-10">
<a href="{{ product.url }}"><h1>{{ product.title }}</h1></a>
</div>
</div>
<div class="row pt-3">
<div class="col-8">
<img src="{{ product.image.url }}" class="img-fluid" \>
</div>
<div class="col-4">
<a href="javascript:{document.getElementById('upvote').submit()}">
<button class="btn btn-primary btn-lg btn-block"><span class="oi oi-caret-top"></span> Up Vote
: {{ product.votes_total }}</button>
</a>
</div>
</div>
<div class="row pt-3">
<div class="col-4">
<h4><span class="oi oi-magnifying-glass"></span> Hunted by: {{ product.hunter.username }}</h4>
</div>
<div class="col-4 text-right">
<h4><span class="oi oi-clock"></span> {{ product.pubdate_pretty }}</h4>
</div>
</div>
<div class="row pt-3">
<div class="col-8">
<p>{{ product.body }}</p>
</div>
</div>
<form id="upvote" method="POST" action="{% url 'upvote' product.id %}">
{% csrf_token %}
<input type="hidden">
</form>
{% endblock %}