diff --git a/public/templates/notifications/index.html b/public/templates/directives/notification-list.html
similarity index 100%
rename from public/templates/notifications/index.html
rename to public/templates/directives/notification-list.html
diff --git a/resources/assets/scripts/app/controllers/application.coffee b/resources/assets/scripts/app/controllers/application.coffee
index a8010494..1e42efe3 100644
--- a/resources/assets/scripts/app/controllers/application.coffee
+++ b/resources/assets/scripts/app/controllers/application.coffee
@@ -22,18 +22,23 @@ module.exports = angular.module('ponyfm').controller "application", [
$scope.$stateParams = $stateParams
$scope.isPinnedPlaylistSelected = false
$scope.menuActive = false
+ $scope.notifActive = false
$loadingElement = null
loadingStateName = null
if 'serviceWorker' of navigator
- console.log 'Service Worker is supported'
- navigator.serviceWorker.register('service-worker.js').then((reg) ->
- console.log 'SW registered', reg
- ).catch (err) ->
- console.log 'SW register failed', err
+ console.log 'Service Worker is supported'
+ navigator.serviceWorker.register('service-worker.js').then((reg) ->
+ console.log 'SW registered', reg
+ ).catch (err) ->
+ console.log 'SW register failed', err
$scope.menuToggle = () ->
$scope.menuActive = !$scope.menuActive
+ $scope.notifActive = false
+
+ $scope.notifPulloutToggle = () ->
+ $scope.notifActive = !$scope.notifActive
if window.pfm.error
$state.transitionTo 'errors-' + window.pfm.error
@@ -72,6 +77,7 @@ module.exports = angular.module('ponyfm').controller "application", [
statesPreloaded = {}
$scope.$on '$stateChangeStart', (e, newState, newParams, oldState, oldParams) ->
$scope.menuActive = false
+ $scope.notifActive = false
$scope.isPinnedPlaylistSelected = false
if newState.name == 'content.playlist'
diff --git a/resources/assets/scripts/app/directives/notification-list.coffee b/resources/assets/scripts/app/directives/notification-list.coffee
new file mode 100644
index 00000000..5baa0e0c
--- /dev/null
+++ b/resources/assets/scripts/app/directives/notification-list.coffee
@@ -0,0 +1,29 @@
+# Pony.fm - A community for pony fan music.
+# Copyright (C) 2016 Josef Citrine
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see