diff options
Diffstat (limited to 'app/Template/user/share.php')
-rw-r--r-- | app/Template/user/share.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Template/user/share.php b/app/Template/user/share.php new file mode 100644 index 00000000..8f333a6b --- /dev/null +++ b/app/Template/user/share.php @@ -0,0 +1,17 @@ +<div class="page-header"> + <h2><?= t('Public access') ?></h2> +</div> + +<?php if (! empty($user['token'])): ?> + + <div class="listing"> + <ul class="no-bullet"> + <li><strong><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?></strong></li> + </ul> + </div> + + <?= $this->url->link(t('Disable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> + +<?php else: ?> + <?= $this->url->link(t('Enable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> +<?php endif ?> |