|
|
|
@ -6,3 +6,10 @@ app.controller('HeaderController', ['$http', function($http){
|
|
|
|
controller.current_user = data.current_user;
|
|
|
|
controller.current_user = data.current_user;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.controller('TransgressionsController', ['$http', function($http){
|
|
|
|
|
|
|
|
var controller = this;
|
|
|
|
|
|
|
|
$http.get('/transgressions').success(function(data){
|
|
|
|
|
|
|
|
controller.transgressions = data.transgressions;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|