From 983628e09e62bd6af731636a9580466f12dd47d5 Mon Sep 17 00:00:00 2001 From: str4d Date: Mon, 3 Jun 2013 23:46:35 +0000 Subject: [PATCH] Enable specific version to be passed to ver() --- i2p2www/pages/downloads/list.html | 6 +++--- i2p2www/templatevars.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/i2p2www/pages/downloads/list.html b/i2p2www/pages/downloads/list.html index 513ce85a..c5bed54f 100644 --- a/i2p2www/pages/downloads/list.html +++ b/i2p2www/pages/downloads/list.html @@ -23,12 +23,12 @@ or type java -version at your command prompt.

Windows

- i2pinstall_0.9.5-win1_windows.exe (Google Code) - ({{ _('select alternate link') }}) + i2pinstall_0.9.5-win1_windows.exe (Google Code) + ({{ _('select alternate link') }})
(SHA256 d64101793764bf77ac3dfc2352677b3d06eef3b6ecb4fa0cf2cf43fc237302f8 - sig) + sig)
diff --git a/i2p2www/templatevars.py b/i2p2www/templatevars.py index cd3660bd..219e6e0d 100644 --- a/i2p2www/templatevars.py +++ b/i2p2www/templatevars.py @@ -87,8 +87,10 @@ def utility_processor(): logo = 'images/i2plogo.png' return logo - def get_current_version(string=None): + def get_current_version(string=None, ver=None): if string: + if ver: + return string % ver return string % CURRENT_I2P_VERSION return CURRENT_I2P_VERSION