diff --git a/ctf/register.py b/ctf/register.py index 422b798..b41a7f2 100755 --- a/ctf/register.py +++ b/ctf/register.py @@ -7,6 +7,22 @@ import string from . import teams from . import config +def head(title): + return ''' + + +
+Pick a short team name: you'll be typing it a lot.
@@ -50,10 +57,8 @@ def main(): - - - - ''' % (config.css, config.url('register.cgi'))) + ''' % config.url('register.cgi')) + + foot()) if not (team and pw and confirm_pw): # If we're starting from the beginning? html = html.substitute(team_error='', @@ -66,7 +71,9 @@ def main(): pw_match_error='Passwords do not match') else: teams.add(team, pw) - html = 'Team registered.' + html = (head('Team registered') + + ('Congratulations, %s is now registered. Go back to the front page and start playing!
' % (team, config.url(''))) + + foot()) print(html)