<commit_before>extend ../templates/normal

append title
	| #{group.name} - Groups - 

append content
	.col-sm-12
		if user.privilege == privilege.admin
			include modal-edit
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#editGroup") 
				span.glyphicon.glyphicon-pencil
				|  Edit
		h2
			if group.logo && group.logo.length
				img.logo.logo-md(src="data:image/png;base64,#{group.logo}")
			| #{group.name}
		include ../partials/feedback
		form.panel.panel-default(method="post" action=url)
			.panel-heading
				h3.panel-title Access Token
			.panel-body 
				p An acces token is required to have access to non-production releases of games (i.e., Development, QA, and Staging). For more information about the access token, see the 
					a(href="/docs") documentation
					|.
				.input-group
					input.monospace.select-all.form-control(readonly type="text" value=group.token)
					if group.tokenExpires
						.input-group-addon Expires #{moment(group.tokenExpires).fromNow()}
					else
						.input-group-addon Expires: never
					if user.privilege == privilege.admin
						.input-group-btn
							button.btn.btn-primary(type="submit" name="action" value="refreshToken" data-toggle="confirm") 
								span.icon.glyphicon.glyphicon-refresh
								| Refresh
	if user.privilege == privilege.admin
		.col-sm-6
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#addUser") 
				span.glyphicon.glyphicon-plus
				|  Add
			h3 Users
			include modal-user
			if users.length
				ul.list-group
					for user in users
						li.list-group-item=user.name
							form.pull-right(method="post" action=url)
								input(type="hidden" name="user" value=user._id)
								button.close(data-toggle="confirm" type="submit" name="action" value="removeUser") &times;
			else
				.alert.alert-warning No users in this group
		.col-sm-6
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#addGame") 
				span.glyphicon.glyphicon-plus
				|  Add
			h3 Games
			include modal-game
			if games.length
				ul.list-group
					for game in games
						li.list-group-item: a.btn-block(href="/games/game/#{game.slug}")=game.title
							form.pull-right(method="post" action=url)
								input(type="hidden" name="game" value=game._id)
								button.close(data-toggle="confirm" type="submit" name="action" value="removeGame") &times;
			else
				.alert.alert-warning No games for this group<commit_msg>Expose the games and user list for all group users<commit_after>extend ../templates/normal

append title
	| #{group.name} - Groups - 

append content
	.col-sm-12
		if user.privilege == privilege.admin
			include modal-edit
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#editGroup") 
				span.glyphicon.glyphicon-pencil
				|  Edit
		h2
			if group.logo && group.logo.length
				img.logo.logo-md(src="data:image/png;base64,#{group.logo}")
			| #{group.name}
		include ../partials/feedback
		form.panel.panel-default(method="post" action=url)
			.panel-heading
				h3.panel-title Access Token
			.panel-body 
				p An acces token is required to have access to non-production releases of games (i.e., Development, QA, and Staging). For more information about the access token, see the 
					a(href="/docs") documentation
					|.
				.input-group
					input.monospace.select-all.form-control(readonly type="text" value=group.token)
					if group.tokenExpires
						.input-group-addon Expires #{moment(group.tokenExpires).fromNow()}
					else
						.input-group-addon Expires: never
					if user.privilege == privilege.admin
						.input-group-btn
							button.btn.btn-primary(type="submit" name="action" value="refreshToken" data-toggle="confirm") 
								span.icon.glyphicon.glyphicon-refresh
								| Refresh
	.col-md-8.col-sm-7
		if user.privilege == privilege.admin
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#addGame") 
				span.glyphicon.glyphicon-plus
				|  Add
		h3 Games
		if user.privilege == privilege.admin
			include modal-game
		if games.length
			ul.list-group
				for game in games
					li.list-group-item: a.btn-block(href="/games/game/#{game.slug}")=game.title
						if user.privilege == privilege.admin
							form.pull-right(method="post" action=url)
								input(type="hidden" name="game" value=game._id)
								button.close(data-toggle="confirm" type="submit" name="action" value="removeGame") &times;
		else
			.alert.alert-warning No games for this group
	.col-md-4.col-sm-5
		if user.privilege == privilege.admin
			button.btn.btn-sm.btn-default.pull-right(data-toggle="modal" data-target="#addUser") 
				span.glyphicon.glyphicon-plus
				|  Add
		h3 Users
		if user.privilege == privilege.admin
			include modal-user
		if users.length
			ul.list-group
				for user in users
					li.list-group-item=user.name
						if user.privilege == privilege.admin
							form.pull-right(method="post" action=url)
								input(type="hidden" name="user" value=user._id)
								button.close(data-toggle="confirm" type="submit" name="action" value="removeUser") &times;
		else
			.alert.alert-warning No users in this group
{'fraction_non_alphanumeric': 0.13408254214299553, 'fraction_numerical': 0.0042627397791125754, 'mean_word_length': 3.179757085020243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4482535', 'n_tokens_mistral': 2099, 'n_tokens_neox': 1678, 'n_words': 339}