text: var app = angular.module("ethics-app");
  
  
  // Help controller
  app.controller("helpController", function($scope, $rootScope, $filter, $translate, $location, config, $window, $authenticationService, $documentService) {
  
      /*************************************************
          FUNCTIONS
       *************************************************/
  
      /**
       * [redirect description]
       * @param  {[type]} path [description]
       * @return {[type]}      [description]
       */
      $scope.redirect = function(path){
          $location.url(path);
      };
  
      /**
       * [cancel description]
       * @return {[type]} [description]
       */
      $scope.cancel = function(){
          if($authenticationService.get()){
              $scope.redirect("/documents/" + $documentService.getId() + "/status/" + $documentService.getStatus());
          } else {
              $scope.redirect("/");
          }
      };
  
  
      /*************************************************
          INIT
       *************************************************/
      $scope.$parent.loading = { status: false, message: "" };
  
  });
  