def navbar(request):
    voice_list = []
    current_path = request.path
    for name, label in VOICES:
        path = reverse(name)
        voice_list.append({
            'label': label,
            'path': path,
            'is_active': path == current_path,
        })
    return {'navbar': voice_list}
Generate a list of voices for the navigation bar.
dataset/ETHPy150Open shtalinberg/django-el-pagination/tests/project/context_processors.py/navbar