1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/project/share.php

20 lines
1 KiB
PHP
Raw Normal View History

2014-11-23 20:13:38 +01:00
<div class="page-header">
<h2><?= t('Public access') ?></h2>
</div>
<?php if ($project['is_public']): ?>
<div class="listing">
<ul class="no-bullet">
2015-01-16 14:23:05 +01:00
<li><strong><i class="fa fa-share-alt"></i> <?= $this->a(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?></strong></li>
<li><strong><i class="fa fa-rss-square"></i> <?= $this->a(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></strong></li>
2014-11-23 20:13:38 +01:00
</ul>
2015-01-16 14:23:05 +01:00
<input type="text" class="auto-select" readonly="readonly" value="<?= $this->getCurrentBaseUrl().$this->u('board', 'readonly', array('token' => $project['token'])) ?>"/>
2014-11-23 20:13:38 +01:00
</div>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Disable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'disable'), true, 'btn btn-red') ?>
2014-11-23 20:13:38 +01:00
<?php else: ?>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Enable public access'), 'project', 'share', array('project_id' => $project['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?>
2014-11-23 20:13:38 +01:00
<?php endif ?>