ColdCore/routes/shell.py

17 lines
441 B
Python
Raw Normal View History

2016-08-12 11:19:18 +00:00
from flask import Blueprint, g, render_template
from data import ssh
2016-08-12 15:44:07 +00:00
from utils import decorators
2016-08-12 11:19:18 +00:00
shell = Blueprint("shell", __name__, template_folder="../templates/shell")
@shell.route('/shell/')
2016-08-12 15:42:26 +00:00
@decorators.must_be_allowed_to("access shell")
2016-08-28 01:32:21 +00:00
@decorators.competition_started_required
2016-08-12 15:42:26 +00:00
@decorators.confirmed_email_required
2016-08-12 11:19:18 +00:00
def index():
account = ssh.get_team_account(g.team)
return render_template("shell.html", account=account)