예제 #1
0
def start(request):
    return {
        'conversations': conversations_with_moderation(request.user),
        'home_banner_fragment': fragment('home.banner', raises=False),
        'how_it_works_fragment': fragment('home.how-it-works', raises=False),
        'start_now_fragment': fragment('home.start-now', raises=False),
        'social_media_icons': social_icons(),
        'user': request.user,
    }
예제 #2
0
def start(request):
    return {
        'conversations': conversations_with_moderation(request.user),
        'how_it_works_fragment': fragment('home.how-it-works', raises=False),
        'start_now_fragment': fragment('home.start-now', raises=False),
        'social_media_icons': social_icons(),
        'user': request.user,
        'footer_content': {
            'image': '/static/img/icons/facebook-blue.svg',
            'first': {
                'normal': 'Plataforma desenvolvida pelo',
                'bold': 'Conanda/MDH/UnB'
            },
            'last': {
                'normal': 'Para denunciar:',
                'bold': 'Disque 100 e #HUMANIZAREDES'
            }
        },
    }
예제 #3
0
def social():
    return {'icons': social_icons()}
예제 #4
0
 def test_social_route(self, db):
     response = routes.social()
     assert response == {'icons': social_icons()}