diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-28 05:50:33 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-28 05:50:33 +0000 |
| commit | 5d0305e8f284fe9ce0ec47325a6fd56508ce65f4 (patch) | |
| tree | e7c434eb54d985e29cbf71caa42a9e4fea0bb68a /views/partials/header.hbs | |
| parent | d94aad5042d2fd09242581f11415de4a978168be (diff) | |
Integrated socketst.io and setup the notification function
Diffstat (limited to 'views/partials/header.hbs')
| -rw-r--r-- | views/partials/header.hbs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/views/partials/header.hbs b/views/partials/header.hbs index bce9736..158ae51 100644 --- a/views/partials/header.hbs +++ b/views/partials/header.hbs @@ -115,6 +115,21 @@ {{# if login }} {{# if user.email }} <li><a href="/user/user_profile">Profile Page</a></li> + <li class="dropdown notification-dropdown"> + <a class="dropdown-toggle notification-icon" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" + aria-expanded="false"> + <i class="fa fa-bell fa-lg" aria-hidden="true"></i> <span class="badge"></span> <span class="caret"></span> + </a> + <ul class="dropdown-menu notification-dropdown-menu"> + {{# if user.notifications.length}} + {{# each user.notifications }} + <li><a href="#">{{this.author}} added a solution to an exam.</a></li> + {{/each}} + {{else}} + <li><a href="#" class="generic-notification">This is a random thing</a></li> + {{/if}} + </ul> + </li> {{else}} <li><a href="/admin">Admin Panel</a></li> {{/if}} |
