Show experiment creators in shared projects

This commit is contained in:
Eike Foken
2011-09-28 17:54:53 +02:00
parent 4a7c55b42b
commit 9d8b2b540a

View File

@@ -39,6 +39,13 @@
<thead> <thead>
<tr> <tr>
<th scope="col"><?=_('Name');?></th> <th scope="col"><?=_('Name');?></th>
<?php
if (count($shares) > 0 || $project['public'] == 1):
?>
<th scope="col"><?=_('Creator');?></th>
<?php
endif;
?>
<th scope="col"><?=_('Jobs');?></th> <th scope="col"><?=_('Jobs');?></th>
<th scope="col"><?=_('Actions');?></th> <th scope="col"><?=_('Actions');?></th>
</tr> </tr>
@@ -63,6 +70,20 @@
?> ?>
<tr> <tr>
<td><a href="<?=site_url('experiments/detail/' . $experiment['id']);?>" title="<?=sprintf(_('Show experiment &quot;%s&quot;'), $experiment['name']);?>"><?=$experiment['name'];?></a></td> <td><a href="<?=site_url('experiments/detail/' . $experiment['id']);?>" title="<?=sprintf(_('Show experiment &quot;%s&quot;'), $experiment['name']);?>"><?=$experiment['name'];?></a></td>
<?php
if (count($shares) > 0 || $project['public'] == 1):
if ($experiment['creator_id'] == $this->access->profile()->id):
?>
<td><?=_('You');?></td>
<?php
else:
$user = $this->user->getById($experiment['creator_id']);
?>
<td><?=anchor('users/profile/' . urlencode($user['username']), $user['firstname'].' '.$user['lastname']);?></td>
<?php
endif;
endif;
?>
<td><span class="<?=$job['css'];?>"><?=$job['status'];?></span></td> <td><span class="<?=$job['css'];?>"><?=$job['status'];?></span></td>
<td> <td>
<?php <?php