def conversation_list(request, board): user = request.user conversations = board.conversations.all() board_user = board.owner boards = [] if user == board_user: boards = board_user.boards.all() return { 'conversations': conversations_with_moderation(user, conversations), 'boards': boards, 'current_board': board, 'can_add_conversation': board_user == user, 'is_a_board': True, 'owns_board': user == board.owner, 'create_url': reverse('board_conversation:create', kwargs={'board': board}), 'title': _("%s' conversations") % board.title, 'subtitle': _("These are %s's conversations. Contribute to them too") % board.title, }
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, }
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' } }, }
def conversation_list(request, board): user = request.user conversations = board.conversations.all() tags = board.tags.all() board_user = board.owner boards = board_user.boards.all() return { 'conversations': conversations_with_moderation(user, conversations), 'categories': tags, 'timelines': boards, 'current_timeline': board, 'can_add_conversation': user.has_perm('ej_boards.can_add_conversation', board), 'is_a_timeline': True, 'is_my_timeline': (user == board.owner), 'create_url': reverse('board_conversation:create', kwargs={'board': board}), 'title': _("%s' conversations") % board.title, 'subtitle': _("These are %s's conversations. Contribute to them too") % board.title, }