Projects management refactoring
This commit is contained in:
18
app/Templates/project_share.php
Normal file
18
app/Templates/project_share.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Public access') ?></h2>
|
||||
</div>
|
||||
|
||||
<?php if ($project['is_public']): ?>
|
||||
|
||||
<div class="settings">
|
||||
<strong><a href="?controller=board&action=readonly&token=<?= $project['token'] ?>" target="_blank"><?= t('Public link') ?></a></strong><br/>
|
||||
<input type="text" readonly="readonly" value="<?= Helper\get_current_base_url() ?>?controller=board&action=readonly&token=<?= $project['token'] ?>"/>
|
||||
</div>
|
||||
|
||||
<a href="?controller=project&action=disablePublic&project_id=<?= $project['id'].Helper\param_csrf() ?>" class="btn btn-red"><?= t('Disable public access') ?></a>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<a href="?controller=project&action=enablePublic&project_id=<?= $project['id'].Helper\param_csrf() ?>" class="btn btn-blue"><?= t('Enable public access') ?></a>
|
||||
|
||||
<?php endif ?>
|
||||
Reference in New Issue
Block a user