Fix download link

This commit is contained in:
Victor Zverovich 2016-06-03 08:19:24 -07:00
parent 9d36a5a3b0
commit a82026746d

View File

@ -86,8 +86,9 @@
<h1>{fmt}</h1> <h1>{fmt}</h1>
<p class="lead">Small, safe and fast formatting library</p> <p class="lead">Small, safe and fast formatting library</p>
<div class="btn-group" role="group"> <div class="btn-group" role="group">
{% set name = 'fmt' if version.split('.')[0]|int >= 3 else 'cppformat' %}
<a class="btn btn-success" <a class="btn btn-success"
href="{{download_url}}/{{version}}/fmt-{{version}}.zip"> href="{{download_url}}/{{version}}/{{name}}-{{version}}.zip">
<span class="glyphicon glyphicon-download"></span> Download <span class="glyphicon glyphicon-download"></span> Download
</a> </a>
<button type="button" class="btn btn-success dropdown-toggle" <button type="button" class="btn btn-success dropdown-toggle"