mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Starting on the sidebar
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
|
||||
$scope.active_sidebar = $location.path()
|
||||
|
||||
$scope.$watch ->
|
||||
$location.path()
|
||||
, ->
|
||||
$scope.active_sidebar = $location.path()
|
||||
|
||||
|
||||
$scope.visible = ->
|
||||
$scope.active_sidebar != null and $scope.active_sidebar != ""
|
||||
Reference in New Issue
Block a user