   nonEmpty = (s) ->
     s? and s.trim().length > 0
 
+# ---------------------------------------------------------------------------
+# Search controller
+# ---------------------------------------------------------------------------
+
 pwguardApp.controller 'HomeCtrl', ($scope, $rootScope) ->
   return

      $rootScope.redirectToSegment segment
    else
      $rootScope.redirectToSegment "login"

  # Page-handling.


  throw e
###

###############################################################################
# Controllers
###############################################################################

# ---------------------------------------------------------------------------
# Main controller
# ---------------------------------------------------------------------------

mainCtrl = ($scope, $rootScope, macModal, $q) ->
