@@ -23,8 +23,19 @@
<p><strong>Released</strong>: {{ candidate.release_date }}</p>
</div>
<div class="mt2">
<div><a href="{% url 'usethesource:download' slug=candidate.slug download_type='source' %}" class="white bg-green db pv2 ph3 mb2">Download source</a></div>
<div><a href="{% url 'usethesource:download' slug=candidate.slug download_type='binary' %}" class="white bg-green db pv2 ph3">Download image</a></div>
{% if candidate.show_download_disclaimer %}
{% else %}
<form method="post" action="{% url 'usethesource:download' slug=candidate.slug download_type='source' %}">
{% csrf_token %}
<button type="submit" class="white b bg-green db w-100 pv2 ph3 bn mb2">Download source</button>
</form>
<form method="post" action="{% url 'usethesource:download' slug=candidate.slug download_type='binary' %}">
<button type="submit" class="white b bg-green db w-100 pv2 ph3 bn mb2">Download image</button>
{% endif %}