From 46eafe105fe97b7be8b8a25a72b491bef03fea8c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 18 May 2015 12:56:32 -0400 Subject: Add ical export for users --- app/Template/user/share.php | 17 +++++++++++++++++ app/Template/user/show.php | 29 +++++++++++++++++++++++++++-- app/Template/user/sidebar.php | 3 +++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 app/Template/user/share.php (limited to 'app/Template/user') diff --git a/app/Template/user/share.php b/app/Template/user/share.php new file mode 100644 index 00000000..98010d4f --- /dev/null +++ b/app/Template/user/share.php @@ -0,0 +1,17 @@ + + + + +
+ +
+ + a(t('Disable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> + + + a(t('Enable public access'), 'user', 'share', array('user_id' => $user['id'], 'switch' => 'enable'), true, 'btn btn-blue') ?> + diff --git a/app/Template/user/show.php b/app/Template/user/show.php index 490d8fb3..9473b382 100644 --- a/app/Template/user/show.php +++ b/app/Template/user/show.php @@ -5,10 +5,35 @@
  • e($user['username']) ?>
  • e($user['name']) ?: t('None') ?>
  • e($user['email']) ?: t('None') ?>
  • + + + + + + + + + + + +
    + +
    + diff --git a/app/Template/user/sidebar.php b/app/Template/user/sidebar.php index ff0fb009..8c7e3cf8 100644 --- a/app/Template/user/sidebar.php +++ b/app/Template/user/sidebar.php @@ -48,6 +48,9 @@ +
  • + a(t('Public access'), 'user', 'share', array('user_id' => $user['id'])) ?> +
  • a(t('Email notifications'), 'user', 'notifications', array('user_id' => $user['id'])) ?>
  • -- cgit v1.2.3