<commit_before><?php $this->load->view('header');?>

<div id="content">

	<div class="title">
		<h2><?=_('Projects');?></h2>
	</div>

	<div class="box">
		<h3><?=_('List of all your accessible projects');?></h3>
		<table class="tableList paginated sortable">
			<thead>
				<tr>
					<th scope="col"><?=_('Project');?></th>
					<th scope="col"><?=_('Owner');?></th>
					<th scope="col"><?=_('Jobs');?></th>
					<th scope="col"><?=_('Actions');?></th>
				</tr>
			</thead>
			<tbody>
<?php
	foreach ($projects as $project):
?>
				<tr>
					<td><a href="<?=site_url('projects/detail/' . $project['id'] . '?active_project=' . $project['id']);?>"><abbr title="<?=$project['name'] . "\n\n" . $project['description'];?>"><?=$project['mediumname'];?></abbr></a></td>
					<td>
<?php
		if ($project['owner'] == $this->access->profile()->id):
?>
						<?=_('You');?>
<?php
		else:
?>
						<a href="<?=site_url('users/profile/' . urlencode($project['username']));?>" title="<?=_('Show profile');?>"><?=$project['firstname'] . ' ' . $project['lastname'];?></a>
<?php
		endif;
?>
					</td>
					<td><span class="active"><?=_('Successfully finished');?></span></td>
					<td>
						<a href="#"><?=_('Show results');?></a>
<?php
		if ($project['owner'] == $this->access->profile()->id):
?>
						| <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
<?php
		endif;
?>
					</td>
				</tr>
<?php
	endforeach;
?>
			</tbody>
		</table>
	</div>

</div>

<?php $this->load->view('footer');?>
<commit_msg>Show message if no projects are in list<commit_after><?php $this->load->view('header');?>

<div id="content">

	<div class="title">
		<h2><?=_('Projects');?></h2>
	</div>

	<div class="box">
		<h3><?=_('List of all your accessible projects');?></h3>
		<table class="tableList paginated sortable">
			<thead>
				<tr>
					<th scope="col"><?=_('Project');?></th>
					<th scope="col"><?=_('Owner');?></th>
					<th scope="col"><?=_('Jobs');?></th>
					<th scope="col"><?=_('Actions');?></th>
				</tr>
			</thead>
			<tbody>
<?php
	if (count($projects) > 0):
		foreach ($projects as $project):
?>
				<tr>
					<td><a href="<?=site_url('projects/detail/' . $project['id'] . '?active_project=' . $project['id']);?>"><abbr title="<?=$project['name'] . "\n\n" . $project['description'];?>"><?=$project['mediumname'];?></abbr></a></td>
					<td>
<?php
			if ($project['owner'] == $this->access->profile()->id):
?>
						<?=_('You');?>
<?php
			else:
?>
						<a href="<?=site_url('users/profile/' . urlencode($project['username']));?>" title="<?=_('Show profile');?>"><?=$project['firstname'] . ' ' . $project['lastname'];?></a>
<?php
			endif;
?>
					</td>
					<td><span class="active"><?=_('Successfully finished');?></span></td>
					<td>
						<a href="#"><?=_('Show results');?></a>
<?php
			if ($project['owner'] == $this->access->profile()->id):
?>
						| <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
<?php
			endif;
?>
					</td>
				</tr>
<?php
		endforeach;
	else:
?>
			<tr>
				<td colspan="4"><?=_("You haven't created any projects yet.");?></td>
			</tr>
<?php
	endif;
?>
			</tbody>
		</table>
	</div>

</div>

<?php $this->load->view('footer');?>

{'fraction_non_alphanumeric': 0.31972361809045224, 'fraction_numerical': 0.00314070351758794, 'mean_word_length': 4.0395569620253164, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 172, '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': '7131375', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1211, 'n_words': 202}