Add message if a project is not shared

This commit is contained in:
Eike Foken
2011-09-09 00:49:11 +02:00
parent a017aaff06
commit 16517382da

View File

@@ -18,6 +18,7 @@
</thead>
<tbody>
<?php
if (count($shares) > 0):
foreach ($shares as $share):
?>
<tr>
@@ -27,6 +28,13 @@
</tr>
<?php
endforeach;
else:
?>
<tr>
<td colspan="3"><?=_('This project is not yet shared with anyone.');?></td>
</tr>
<?php
endif;
?>
</tbody>
</table>
@@ -48,7 +56,7 @@
endforeach;
?>
</select>
<?=form_dropdown('rights', array('Can view', 'Can edit'), $share['can_edit'], 'class="drop"')?>
<?=form_dropdown('rights', array('Can view', 'Can edit'), 0, 'class="drop"')?>
<?=form_submit('add', _('Share'), 'class="submit"');?>
</div>
</li>