<commit_before>{include file='header' pageTitle='Permission Overview'}

<header class="boxHeadline">
	<h1>{lang}Permission Overview{/lang}</h1>
</header>

<div class="contentNavigation">
	{hascontent}
	<nav>
		{content}
			{if $__wcf->session->getPermission('admin.packageServer.canAddPermissions')}
				<ul>
					<li>
						<a href="{link controller='PackageGeneralPermissionAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.addgeneral{/lang}</span>
						</a>
					</li>
				</ul>
						
				<ul>
					<li>
						<a href="{link controller='PackageGeneralUserAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.adduser{/lang}</span>
						</a>
					</li>
				</ul>
						
				<ul>
					<li>
						<a href="{link controller='PackageGeneralGroupAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.addgroup{/lang}</span>
						</a>
					</li>
				</ul>
			{/if}
			
			{event name='additonalNavigationLinks'}
		{/content}
	</nav>
	{/hascontent}
</div>

{hascontent}
	<div class="tabularBox tabularBoxTitle marginTop">
		<header>
			<h2>{lang}wcf.acp.packageserver.permission.list{/lang}</h2>
		</header>

		<table class="table">
			<thead>
				<tr>
					<th class="columnTitle">{lang}wcf.acp.packageserver.permission.package{/lang}</th>
					<th class="columnText">{lang}wcf.acp.packageserver.permission.type{/lang}</th>
					{event name='headColumns'}
				</tr>
			</thead>

			<tbody>
				{content}
				{foreach from=$items item=item}
					<tr>
						<td class="columnIcon">
							{event name='buttons'}
						</td>
						<td class="columnTitle"><p>{$item.packageIdentifier}</p></td>
						<td class="columnText "><p>{if $item.type == 'general'}{lang}wcf.acp.packageserver.permission.type.general{/lang}{elseif $item.type == 'user'}{lang}wcf.acp.packageserver.permission.user{/lang}{else}{lang}wcf.acp.packageserver.permission.type.group{/lang}{/if}</p></td>

						{event name='columns'}
					</tr>
				{/foreach}
				{/content}
			</tbody>
		</table>

	</div>
{hascontentelse}
	<p class="info">{lang}wcf.acp.packageserver.permission.noresults{/lang}</p>
{/hascontent}

<div class="contentNavigation">
	{hascontent}
	<nav>
		{content}
			{if $__wcf->session->getPermission('admin.packageServer.canAddPermissions')}
				<ul>
					<li><commit_msg>Tim had something to complain about .. :D<commit_after>{include file='header' pageTitle='Permission Overview'}

<header class="boxHeadline">
	<h1>{lang}Permission Overview{/lang}</h1>
</header>

<div class="contentNavigation">
	{hascontent}
	<nav>
		{content}
			{if $__wcf->session->getPermission('admin.packageServer.canAddPermissions')}
				<ul>
					<li>
						<a href="{link controller='PackageGeneralPermissionAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.addgeneral{/lang}</span>
						</a>
					</li>
				</ul>
						
				<ul>
					<li>
						<a href="{link controller='PackageGeneralUserAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.adduser{/lang}</span>
						</a>
					</li>
				</ul>
						
				<ul>
					<li>
						<a href="{link controller='PackageGeneralGroupAdd'}{/link}" title="" class="button">
							<span class="icon icon16 icon-plus"></span> 
							<span>{lang}wcf.acp.packageserver.permission.addgroup{/lang}</span>
						</a>
					</li>
				</ul>
			{/if}
			
			{event name='additonalNavigationLinks'}
		{/content}
	</nav>
	{/hascontent}
</div>

{hascontent}
	<div class="tabularBox tabularBoxTitle marginTop">
		<header>
			<h2>{lang}wcf.acp.packageserver.permission.list{/lang}</h2>
		</header>

		<table class="table">
			<thead>
				<tr>
					<th class="columnTitle">{lang}wcf.acp.packageserver.permission.package{/lang}</th>
					<th class="columnText">{lang}wcf.acp.packageserver.permission.type{/lang}</th>
					{event name='headColumns'}
				</tr>
			</thead>

			<tbody>
				{content}
				{foreach from=$items item=item}
					<tr>
						<td class="columnIcon">
							{event name='buttons'}
						</td>
						<td class="columnTitle"><p>{$item.packageIdentifier}</p></td>
						<td class="columnText "><p>{lang}wcf.acp.packageserver.permission.type.{$item.type}{/lang}</p></td>

						{event name='columns'}
					</tr>
				{/foreach}
				{/content}
			</tbody>
		</table>

	</div>
{hascontentelse}
	<p class="info">{lang}wcf.acp.packageserver.permission.noresults{/lang}</p>
{/hascontent}

<div class="contentNavigation">
	{hascontent}
	<nav>
		{content}
			{if $__wcf->session->getPermission('admin.packageServer.canAddPermissions')}
				<ul>
					<li>
{'fraction_non_alphanumeric': 0.19518662043646748, 'fraction_numerical': 0.004079135223332654, 'mean_word_length': 3.5032139577594124, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 159, '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': '5697325', 'n_tokens_mistral': 2200, 'n_tokens_neox': 1716, 'n_words': 259}