Example #1
0
def view_character_sheet(request, character_id):
    """
    Show the character sheet for the given character
    """
    return render_chaffers(
        request,
        'character_sheet.html',
        {'character_id': character_id}
    )
Example #2
0
def view(request, game_id):
    """
    Show the game with the given ID
    """
    return render_chaffers(
        request,
        'games/view.html',
        {'game_id': game_id}
    )
Example #3
0
def view_character_list(request):
    """ Show a list of characters
    """

    characters_data = Character.objects.values('id', 'display_name')

    return render_chaffers(
        request, 'character_list.html', {
            'character_data':
            [json.dumps(character_data) for character_data in characters_data]
        })
Example #4
0
def view_character_list(request):
    """ Show a list of characters
    """

    characters_data = Character.objects.values('id', 'display_name')

    return render_chaffers(
        request,
        'character_list.html',
        {'character_data': [json.dumps(character_data) for character_data in characters_data]}
    )
Example #5
0
def view_character_sheet(request, character_id):
    """
    Show the character sheet for the given character
    """
    return render_chaffers(request, 'character_sheet.html',
                           {'character_id': character_id})
Example #6
0
def view(request, game_id):
    """
    Show the game with the given ID
    """
    return render_chaffers(request, 'games/view.html', {'game_id': game_id})