Exemplo n.º 1
0
def homepage_promos(request):
    from discovery.views import get_modules
    platform = request.GET.get('platform')
    version = request.GET.get('version')
    modules = get_modules(request, platform, version)
    return jingo.render(request, 'addons/impala/homepage_promos.html',
                        {'modules': modules})
Exemplo n.º 2
0
def homepage_promos(request):
    from discovery.views import get_modules
    platform = request.GET.get('platform')
    version = request.GET.get('version')
    modules = get_modules(request, platform, version)
    return jingo.render(request, 'addons/impala/homepage_promos.html',
                        {'modules': modules})
Exemplo n.º 3
0
def homepage_promos(request):
    from discovery.views import get_modules

    platform = amo.PLATFORM_DICT.get(request.GET.get("platform"), amo.PLATFORM_ALL)
    version = request.GET.get("version")
    modules = get_modules(request, platform.api_name, version)
    return jingo.render(request, "addons/impala/homepage_promos.html", {"modules": modules})
Exemplo n.º 4
0
def homepage_promos(request):
    from discovery.views import get_modules
    platform = amo.PLATFORM_DICT.get(request.GET.get('platform'),
                                     amo.PLATFORM_ALL)
    version = request.GET.get('version')
    modules = get_modules(request, platform.api_name, version)
    return jingo.render(request, 'addons/impala/homepage_promos.html',
                        {'modules': modules})
Exemplo n.º 5
0
def homepage_promos(request):
    from discovery.views import get_modules
    platform = amo.PLATFORM_DICT.get(request.GET.get('platform'),
                                     amo.PLATFORM_ALL)
    version = request.GET.get('version')
    modules = get_modules(request, platform.api_name, version)
    return jingo.render(request, 'addons/impala/homepage_promos.html',
                        {'modules': modules})
Exemplo n.º 6
0
def homepage_promos(request):
    from discovery.views import get_modules
    from constants.platforms import PLATFORM_DICT
    platform = PLATFORM_DICT.get(request.GET.get('platform'), 'All').api_name
    version = request.GET.get('version')
    modules = get_modules(request, platform, version)
    return jingo.render(request, 'addons/impala/homepage_promos.html',
                        {'modules': modules})