File diff c0a4fe5f39d0 → 296f29c84bb2
conservancy/usethesource/templates/usethesource/candidate.html
Show inline comments
...
 
@@ -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 %}
 
          <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>
 
        {% 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' %}">
 
            {% csrf_token %}
 
            <button type="submit" class="white b bg-green db w-100 pv2 ph3 bn mb2">Download image</button>
 
          </form>
 
        {% endif %}
 
      </div>
 
    </div>