Removing some garbage, adding admin link

This commit is contained in:
Will Marshall
2014-05-08 11:24:37 +10:00
parent a7ef1295e4
commit d5648bd993
5 changed files with 25 additions and 51 deletions

View File

@@ -1,15 +0,0 @@
Darkswarm.controller "AccountSidebarCtrl", ($scope, $http, $location, SpreeUser, Navigation) ->
$scope.path = "/account"
Navigation.paths.push $scope.path
$scope.active = ->
$location.path() == $scope.path
$scope.select = ->
Navigation.navigate($scope.path)
$scope.emptyCart = (href, ev)->
if $(ev.delegateTarget).hasClass "empties-cart"
location.href = href if confirm "Changing your Hub will clear your cart."
else
location.href = href

View File

@@ -1,2 +0,0 @@
Darkswarm.controller "SidebarCtrl", ($scope, $location, Sidebar) ->
$scope.Sidebar = Sidebar