Show if a project is public and then disable sharing

This commit is contained in:
Eike Foken
2011-09-28 21:08:12 +02:00
parent 67730d4557
commit c86a4e5c3e
2 changed files with 29 additions and 8 deletions

View File

@@ -5,7 +5,17 @@
<div class="title">
<h2>
<?=anchor('projects', _('Projects'));?> &raquo; <?=$project['name'];?>
<?php
if ($project['public'] == 1):
?>
<a class="share" href="<?=site_url('projects/shares/' . $project['id']);?>"><?=_('Public for all');?></a>
<?php
else:
?>
<a class="share" href="<?=site_url('projects/shares/' . $project['id']);?>"><?=_(sprintf('Shared with %s people', count($shares)));?></a>
<?php
endif;
?>
</h2>
</div>