Example #1
0
def actions(request, template_name='dashboard/actions.html'):
    user = request.user
    team_actions = team_actions_for_user(user)
    template_context = {
        'object_list': team_actions,
    }
    return render_to_response(template_name, template_context, RequestContext(request))
Example #2
0
def index(request, template_name='dashboard/index.html'):
    user = request.user
    team_actions = team_actions_for_user(user)
    team_topics = team_topics_for_user(user)
    events = all_events_for_user(user)
    template_context = {
        'team_actions': team_actions,
        'team_topics': team_topics,
        'events': events,
    }
    return render_to_response(
        template_name,
        template_context,
        RequestContext(request),
    )