예제 #1
0
def index(request, *args, **kwargs):
    user_options = []
    for section in usercp.get_sections(request):
        user_options.append({
            'name': str(section['name']),
            'icon': section['icon'],
            'component': section['component'],
        })

    request.frontend_context.update({'USER_OPTIONS': user_options})

    return render(request, 'misago/options/noscript.html')
예제 #2
0
def index(request, *args, **kwargs):
    user_options = []
    for section in usercp.get_sections(request):
        user_options.append({
            'name': six.text_type(section['name']),
            'icon': section['icon'],
            'component': section['component'],
        })

    request.frontend_context.update({'USER_OPTIONS': user_options})

    return render(request, 'misago/options/noscript.html')