diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-03 12:09:27 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-03 12:09:27 -0400 |
commit | d67d7c54e65e80d1b484490e42dbecb969aa7686 (patch) | |
tree | e62446885fac0d3af5b29d409d8e9a4f6c50940e /app/Controller/App.php | |
parent | b5a2b8f9f7ac9ef947357acd3981993159d64b52 (diff) |
Add web notifications
Diffstat (limited to 'app/Controller/App.php')
-rw-r--r-- | app/Controller/App.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php index 80c04801..8a1a6e2b 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -188,6 +188,22 @@ class App extends Base } /** + * My notifications + * + * @access public + */ + public function notifications() + { + $user = $this->getUser(); + + $this->response->html($this->layout('app/notifications', array( + 'title' => t('My notifications'), + 'notifications' => $this->webNotification->getAll($user['id']), + 'user' => $user, + ))); + } + + /** * Render Markdown text and reply with the HTML Code * * @access public |