Example #1
0
def grandchalls(request):
    round = GrandChallengeGame.get_current_round()
    nr = round.round_number if round else -1
    return render_to_response(
        'grandchallenge/cpanel/grandchallenge.html',
        {'nr': nr, 'round': round, 'gc': GrandChallengeGame},
        context_instance=RequestContext(request))
Example #2
0
def grandchalls_round_close(request):
    if request.method == 'POST':
        round = GrandChallengeGame.get_current_round()
        GrandChallengeGame.force_round_close(round)
        return redirect('grandchalls')
    return render_to_response('grandchallenge/cpanel/grandchallenge_round_close.html', {'gc': GrandChallengeGame},
                              context_instance=RequestContext(request))
Example #3
0
def grandchalls_round_close(request):
    if request.method == 'POST':
        round = GrandChallengeGame.get_current_round()
        GrandChallengeGame.force_round_close(round)
        return redirect('grandchalls')
    return render_to_response(
        'grandchallenge/cpanel/grandchallenge_round_close.html',
        {'gc': GrandChallengeGame},
        context_instance=RequestContext(request))