Auto-generate download links.

This commit is contained in:
Aldo Cortesi 2012-08-25 11:30:55 +12:00
parent d36cf63112
commit 9db2bcabad
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ def index():
@app.route('/download') @app.route('/download')
@app.route('/download.html') @app.route('/download.html')
def download(): def download():
return render("download.html", True, section="download") return render("download.html", True, section="download", version=version.VERSION)
@app.route('/about') @app.route('/about')

View File

@ -45,7 +45,7 @@
</div> </div>
<div style="margin-top: 20px; margin-bottom: 20px"> <div style="margin-top: 20px; margin-bottom: 20px">
<a class="btn btn-primary btn-large" href="https://github.com/downloads/cortesi/pathod/pathod-0.2.tar.gz">pathod-0.2.tar.gz</a> <a class="btn btn-primary btn-large" href="https://github.com/downloads/cortesi/pathod/pathod-{{version}}.tar.gz">pathod-{{version}}.tar.gz</a>
</div> </div>
</section> </section>