Show message if no projects are in list
This commit is contained in:
@@ -19,37 +19,45 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach ($projects as $project):
|
if (count($projects) > 0):
|
||||||
|
foreach ($projects as $project):
|
||||||
?>
|
?>
|
||||||
<tr>
|
<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><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>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ($project['owner'] == $this->access->profile()->id):
|
if ($project['owner'] == $this->access->profile()->id):
|
||||||
?>
|
?>
|
||||||
<?=_('You');?>
|
<?=_('You');?>
|
||||||
<?php
|
<?php
|
||||||
else:
|
else:
|
||||||
?>
|
?>
|
||||||
<a href="<?=site_url('users/profile/' . urlencode($project['username']));?>" title="<?=_('Show profile');?>"><?=$project['firstname'] . ' ' . $project['lastname'];?></a>
|
<a href="<?=site_url('users/profile/' . urlencode($project['username']));?>" title="<?=_('Show profile');?>"><?=$project['firstname'] . ' ' . $project['lastname'];?></a>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td><span class="active"><?=_('Successfully finished');?></span></td>
|
<td><span class="active"><?=_('Successfully finished');?></span></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="#"><?=_('Show results');?></a>
|
<a href="#"><?=_('Show results');?></a>
|
||||||
<?php
|
<?php
|
||||||
if ($project['owner'] == $this->access->profile()->id):
|
if ($project['owner'] == $this->access->profile()->id):
|
||||||
?>
|
?>
|
||||||
| <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
|
| <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
endforeach;
|
endforeach;
|
||||||
|
else:
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4"><?=_("You haven't created any projects yet.");?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user