diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-08-25 11:30:55 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-08-25 11:30:55 +1200 |
commit | 9db2bcabad9d6ec78ebf55a8a43d41f8340d8f71 (patch) | |
tree | 8430f5c7cff93a187b357a90fdfa47a81d8fd71b | |
parent | d36cf6311214d2143b5e522042ac53033840b808 (diff) | |
download | mitmproxy-9db2bcabad9d6ec78ebf55a8a43d41f8340d8f71.tar.gz mitmproxy-9db2bcabad9d6ec78ebf55a8a43d41f8340d8f71.tar.bz2 mitmproxy-9db2bcabad9d6ec78ebf55a8a43d41f8340d8f71.zip |
Auto-generate download links.
-rw-r--r-- | libpathod/app.py | 2 | ||||
-rw-r--r-- | libpathod/templates/download.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index c7d0e7b2..3e851477 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -45,7 +45,7 @@ def index(): @app.route('/download') @app.route('/download.html') def download(): - return render("download.html", True, section="download") + return render("download.html", True, section="download", version=version.VERSION) @app.route('/about') diff --git a/libpathod/templates/download.html b/libpathod/templates/download.html index a9b827c4..e58437e0 100644 --- a/libpathod/templates/download.html +++ b/libpathod/templates/download.html @@ -45,7 +45,7 @@ </div> <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> </section> |