@login_required
def deployment_info(request, domain, template='appstore/deployment_info.html'):
    dom = Domain.get_by_name(domain)
    if ((not dom) or (not dom.deployment.public)):
        raise Http404()
    results = es_deployments_query({}, DEPLOYMENT_FACETS)
    facet_map = fill_mapping_with_facets(DEPLOYMENT_MAPPING, results, {})
    return render(request, template, {'domain': dom, 'search_url': reverse('deployments'), 'url_base': reverse('deployments'), 'facet_map': facet_map})
@login_required
def deployment_info(request, domain, template='appstore/deployment_info.html'):
    dom = Domain.get_by_name(domain)
    if ((not dom) or (not dom.deployment.public)):
        raise Http404()
    results = es_deployments_query({}, DEPLOYMENT_FACETS)
    facet_map = fill_mapping_with_facets(DEPLOYMENT_MAPPING, results, {})
    return render(request, template, {'domain': dom, 'search_url': reverse('deployments'), 'url_base': reverse('deployments'), 'facet_map': facet_map})