Пример #1
0
def setup_list(request):
    context = {
        'object_list': [button_navigation_widget(request, item) for item in setup_items],
        'title': _(u'setup items'),
    }

    return render_to_response('generic_list_horizontal.html', context,
        context_instance=RequestContext(request))
Пример #2
0
def setup_list(request):
    context = {
        'object_list': [button_navigation_widget(request, item) for item in setup_items],
        'title': _(u'setup items'),
    }

    return render_to_response('generic_list_horizontal.html', context,
        context_instance=RequestContext(request))
Пример #3
0
def tools_list(request):
    context = {
        'object_list': [button_navigation_widget(request, item.get('link')) for item in tool_menu.getchildren()],
        'title': _(u'tools'),
    }

    # Remove unresolved links form list
    context['object_list'] = [obj for obj in context['object_list'] if obj]

    return render_to_response('generic_list_horizontal.html', context,
        context_instance=RequestContext(request))
Пример #4
0
def tools_list(request):
    context = {"object_list": [button_navigation_widget(request, item) for item in tool_items], "title": _(u"tools")}

    return render_to_response("generic_list_horizontal.html", context, context_instance=RequestContext(request))