First Commit

This commit is contained in:
rohit
2020-05-21 09:55:19 +05:30
commit 749c0d16aa
225 changed files with 27519 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{% extends 'base.html'%}
{% block content %}
{% for product in products.all %}
<div class="row pt-3">
<div class="col-2" onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;">
<img src="{{ product.icon.url }}" class="img-fluid"/>
</div>
<div class="col-6 onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;"">
<h1>{{product.title}}</h1>
<p>{{product.summary}}</p>
</div>
<div class="col-4 onclick="window.location='{% url 'detail' product.id %}';" style="cursor: pointer;"">
<a href="javascript:{document.getElementById('upvote{{product.id}}').submit()}"><button class="btn btn-primary btn-lg btn-block "><span class="oi oi-caret-top"></span>Upvote {{product.votes_total}}</button></a>
</div>
</div>
<form id="upvote{{product.id}}" method="POST" action="{% url 'upvote' product.id %}" >
{% csrf_token %}
<input type="hidden">
</form>
{% endfor %}
{% endblock %}