diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-25 22:28:09 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-25 22:28:09 -0400 |
commit | ff892c5d25e0bab560f005c788189d38c2bcab7b (patch) | |
tree | 72edfcffd52db61f9a7632f860b6d914445593ab /app/Template/project_view/share.php | |
parent | 872dc79dbd8b04424520e32675a6e0dcb6ed44bc (diff) |
Split project controller into multiple classes
Diffstat (limited to 'app/Template/project_view/share.php')
-rw-r--r-- | app/Template/project_view/share.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/Template/project_view/share.php b/app/Template/project_view/share.php new file mode 100644 index 00000000..6161faa9 --- /dev/null +++ b/app/Template/project_view/share.php @@ -0,0 +1,18 @@ +<div class="page-header"> + <h2><?= t('Public access') ?></h2> +</div> + +<?php if ($project['is_public']): ?> + + <div class="listing"> + <ul class="no-bullet"> + <li><strong><i class="fa fa-share-alt"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?></strong></li> + <li><strong><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'feed', 'project', array('token' => $project['token']), false, '', '', true) ?></strong></li> + <li><strong><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token']), false, '', '', true) ?></strong></li> + </ul> + </div> + + <?= $this->url->link(t('Disable public access'), 'ProjectViewController', 'updateSharing', array('project_id' => $project['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> +<?php else: ?> + <?= $this->url->link(t('Enable public access'), 'ProjectViewController', 'updateSharing', array('project_id' => $project['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> +<?php endif ?> |