summaryrefslogtreecommitdiff
path: root/app/Controller/User.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-08 16:13:05 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-08 16:13:05 -0500
commit92509c43c452daea115a4f6e99d94bda5538c8f0 (patch)
tree6bfacdbd4ae52ae8be36921605aa5560143fa1fe /app/Controller/User.php
parentacf3941b4aa95bff9e80aa03e22dc064036e69cf (diff)
Add user calendar view on the dashboard and in the user management section
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r--app/Controller/User.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Controller/User.php b/app/Controller/User.php
index 91141241..3736f20e 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -190,6 +190,20 @@ class User extends Base
}
/**
+ * Display user calendar
+ *
+ * @access public
+ */
+ public function calendar()
+ {
+ $user = $this->getUser();
+
+ $this->response->html($this->layout('user/calendar', array(
+ 'user' => $user,
+ )));
+ }
+
+ /**
* Display timesheet
*
* @access public