Adding a sidebar tab

This commit is contained in:
Will Marshall
2014-03-27 13:34:38 +11:00
parent b5f1464ce9
commit 2158937f82
6 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
window.ForgotSidebarCtrl = Darkswarm.controller "ForgotSidebarCtrl", ($scope, $http, $location) ->
$scope.active = ->
$location.path() == '/forgot'
$scope.select = ->
$location.path("/forgot")

View File

@@ -1,3 +1,3 @@
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
$scope.active = ->
$location.path() in ["/login", "/signup"]
$location.path() in ["/login", "/signup", "/forgot"]