<commit_before><!DOCTYPE html>
<html lang="en">
	<head>
		<title>Team Management - {{siteTitle}}</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<link rel="stylesheet" href="/css/wing-0.1.9.min.css" />
		<link rel="stylesheet" href="/node_modules/sweetalert2/dist/sweetalert2.min.css" />
		<link rel="stylesheet" href="/css/main.css" />
		<link rel="stylesheet" href="/css/application.css" />
		<link rel="stylesheet" href="/css/theme.css" />
		<style>
			h1 {
				margin-bottom: 35px;
			}
			h3 {
				margin-top: 0;
				text-align: center;
			}
			.align-center {
				text-align: center;
			}
		</style>
		<script src="/node_modules/whatwg-fetch/fetch.js"></script>
		<script src="/node_modules/sweetalert2/dist/sweetalert2.min.js"></script>
		<script src="/js/common.js"></script>
		<script src="/js/team.js" defer></script>
	</head>
	<body>
		{{#> sidebar}}
			<h1>Team Management</h1>
			<section class="main">
				{{#if user.teamId}}
					<h3>Team <b class="teamName">{{team.teamName}}</b></h3>
					<p class="align-center">Teams can have up to <strong>{{settings.maxTeamSize}}</strong> members.</p>
					<ul>
						<li><b>{{teamLeaderAsUser.name}}</b> ({{teamLeaderAsUser.email}}) &mdash; <strong>Team Leader</strong></li>
						{{#each membersAsUsers}}
							<li>{{name}} ({{email}})</li>
						{{/each}}
					</ul>
					{{#each membersAsUsers}}
					{{else}}
						<p><em>There are no members in this team other than you!</em></p>
					{{/each}}
					<p>Tell your friends to enter <b class="teamName">{{team.teamName}}</b> at their join team menu.</p>

					{{#if isCurrentUserTeamLeader}}
						<label for="renameTeamInput">Rename your team:</label>
						<input id="renameTeamInput" placeholder="New team name" />
					{{/if}}

					<div class="center">
						{{#if isCurrentUserTeamLeader}}
							<button id="renameTeam" action="/api/user/{{user.uuid}}/team/rename/">Rename</button>
						{{/if}}
						<button id="leaveTeam" action="/api/user/{{user.uuid}}/team/leave/" style="background-color: #FF4136;">Leave Team</button>
					</div>
				{{else}}
					<h3>Let's get you in a team!</h3>
					<p class="align-center">Teams can have up to <strong>{{settings.maxTeamSize}}</strong> members. Teams are optional and you can form them at the event too!</p>

					<div class="row">
						<div class="col">
							<h4>Join a team</h4>
							<p>Ask your friend for their team name.</p>
							<label for="joinTeamInput">Team name to join:</label><commit_msg>Update client/team.html<commit_after><!DOCTYPE html>
<html lang="en">
	<head>
		<title>Team Management - {{siteTitle}}</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<link rel="stylesheet" href="/css/wing-0.1.9.min.css" />
		<link rel="stylesheet" href="/node_modules/sweetalert2/dist/sweetalert2.min.css" />
		<link rel="stylesheet" href="/css/main.css" />
		<link rel="stylesheet" href="/css/application.css" />
		<link rel="stylesheet" href="/css/theme.css" />
		<style>
			h1 {
				margin-bottom: 35px;
			}
			h3 {
				margin-top: 0;
				text-align: center;
			}
			.align-center {
				text-align: center;
			}
		</style>
		<script src="/node_modules/whatwg-fetch/fetch.js"></script>
		<script src="/node_modules/sweetalert2/dist/sweetalert2.min.js"></script>
		<script src="/js/common.js"></script>
		<script src="/js/team.js" defer></script>
	</head>
	<body>
		{{#> sidebar}}
			<h1>Team Management</h1>
			<section class="main">
				{{#if user.teamId}}
					<h3>Team <b class="teamName">{{team.teamName}}</b></h3>
					<p class="align-center">Teams can have up to <strong>{{settings.maxTeamSize}}</strong> members.</p>
					<ul>
						<li><b>{{teamLeaderAsUser.name}}</b> ({{teamLeaderAsUser.email}}) &mdash; <strong>Team Leader</strong></li>
						{{#each membersAsUsers}}
							<li>{{name}} ({{email}})</li>
						{{/each}}
					</ul>
					{{#each membersAsUsers}}
					{{else}}
						<p><em>There are no members in this team other than you!</em></p>
					{{/each}}
					<p>Tell your friends to enter <b class="teamName">{{team.teamName}}</b> at their join team menu.</p>

					{{#if isCurrentUserTeamLeader}}
						<label for="renameTeamInput">Rename your team:</label>
						<input id="renameTeamInput" placeholder="New team name" />
					{{/if}}

					<div class="center">
						{{#if isCurrentUserTeamLeader}}
							<button id="renameTeam" action="/api/user/{{user.uuid}}/team/rename/">Rename</button>
						{{/if}}
						<button id="leaveTeam" action="/api/user/{{user.uuid}}/team/leave/" style="background-color: #FF4136;">Leave Team</button>
					</div>
				{{else}}
					<h3>Let's get you in a team!</h3>
					<p class="align-center">Teams can have up to <strong>{{settings.maxTeamSize}}</strong> members. If you don't currently have a team, you can form one at the event!</p>

					<div class="row">
						<div class="col">
							<h4>Join a team</h4>
							<p>Ask your friend for their team name.</p>
							<label for="joinTeamInput">Team name to join:</label>
{'fraction_non_alphanumeric': 0.20267611176702086, 'fraction_numerical': 0.010625737898465172, 'mean_word_length': 3.412326388888889, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1406497', 'n_tokens_mistral': 2191, 'n_tokens_neox': 1748, 'n_words': 366}