From 3c3b4ed706f571e7d24fb916edd9f49e229b7952 Mon Sep 17 00:00:00 2001 From: str4d Date: Thu, 20 Dec 2012 04:46:37 +0000 Subject: [PATCH] Moved ver() into templatevars so only need to change I2P version in one place --- i2p2www/pages/global/layout.html | 2 +- i2p2www/pages/global/macros | 6 ------ i2p2www/templatevars.py | 8 +++++++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/i2p2www/pages/global/layout.html b/i2p2www/pages/global/layout.html index b6d01ae6..3d375aa3 100644 --- a/i2p2www/pages/global/layout.html +++ b/i2p2www/pages/global/layout.html @@ -1,4 +1,4 @@ -{%- from "global/macros" import change_lang, ver with context -%} +{%- from "global/macros" import change_lang with context -%} diff --git a/i2p2www/pages/global/macros b/i2p2www/pages/global/macros index 074b2b7b..1d709ff0 100644 --- a/i2p2www/pages/global/macros +++ b/i2p2www/pages/global/macros @@ -8,12 +8,6 @@ {%- endif -%} {%- endmacro -%} -{%- macro ver(string=None) -%} -{%- if string -%}{{ string % '0.9.4' }} -{%- else -%}{{ '0.9.4' }} -{%- endif -%} -{%- endmacro -%} - {%- macro render_pagination(pagination) %}