mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Improving the navigation by moving it all to a service, adding a generic icon
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
|
||||
$scope.sidebarPaths = ["/login", "/signup", "/forgot", "/account"]
|
||||
|
||||
$scope.active = ->
|
||||
$location.path() in ["/login", "/signup", "/forgot"]
|
||||
$location.path() in $scope.sidebarPaths
|
||||
|
||||
|
||||
Reference in New Issue
Block a user