<reponame>zedoax/Hubris
from tournament import tournament_blueprint
from flask import render_template


@tournament_blueprint.route("/", methods=['GET', 'POST'])
def get_tourney():
    return render_template('tournament.html', title='CSH | Tournament', enabled=False)


@tournament_blueprint.route("/create", methods=['GET'])
def get_create():
    return render_template('create.html', title='CSH | Tournament')


@tournament_blueprint.route("/<tournament_id>", methods=['GET', 'POST'])
def get_view_tournament(tournament_id):

    return render_template('view_tournament.html', title='CSH | Tournament')


@tournament_blueprint.route("/<tournament_id>/rules", methods=['GET', 'POST'])
def get_view_rules(tournament_id):
    return render_template('view_rules.html', title='CSH | Tournament')
from tournament import tournament_blueprint
from flask import render_template


@tournament_blueprint.route("/", methods=['GET', 'POST'])
def get_tourney():
    return render_template('tournament.html', title='CSH | Tournament', enabled=False)


@tournament_blueprint.route("/create", methods=['GET'])
def get_create():
    return render_template('create.html', title='CSH | Tournament')


@tournament_blueprint.route("/<tournament_id>", methods=['GET', 'POST'])
def get_view_tournament(tournament_id):

    return render_template('view_tournament.html', title='CSH | Tournament')


@tournament_blueprint.route("/<tournament_id>/rules", methods=['GET', 'POST'])
def get_view_rules(tournament_id):
    return render_template('view_rules.html', title='CSH | Tournament')