Add message if a project is not shared
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
if (count($shares) > 0):
|
||||||
foreach ($shares as $share):
|
foreach ($shares as $share):
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -27,6 +28,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
endforeach;
|
endforeach;
|
||||||
|
else:
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td colspan="3"><?=_('This project is not yet shared with anyone.');?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -48,7 +56,7 @@
|
|||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</select>
|
</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"');?>
|
<?=form_submit('add', _('Share'), 'class="submit"');?>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user