addons-server/apps/versions/helpers.py

18 строки
464 B
Python

import jingo
import jinja2
from addons.helpers import new_context
@jingo.register.inclusion_tag('versions/version.html')
@jinja2.contextfunction
def version_detail(context, addon, version, src, impala=False,
itemclass='item'):
return new_context(**locals())
@jingo.register.inclusion_tag('versions/mobile/version.html')
@jinja2.contextfunction
def mobile_version_detail(context, addon, version, src):
return new_context(**locals())