```coffeescript
Darkswarm.directive "ofnRegistrationLimitModal", (Navigation, $modal, Loading) ->
  restrict: 'A'
  link: (scope, elem, attr)->
    scope.modalInstance = $modal.open
      templateUrl: 'registration/limit_reached.html'
      windowClass: "login-modal large"
      backdrop: 'static'

    scope.modalInstance.result.then scope.close, scope.close

    scope.close = ->
      Loading.message = "Taking you back to the home page"
      Navigation.go "/"
```

Tweak the modal styling for register modals
user
```coffeescript
Darkswarm.directive "ofnRegistrationLimitModal", (Navigation, $modal, Loading) ->
  restrict: 'A'
  link: (scope, elem, attr)->
    scope.modalInstance = $modal.open
      templateUrl: 'registration/limit_reached.html'
      windowClass: "login-modal register-modal xlarge"
      backdrop: 'static'

    scope.modalInstance.result.then scope.close, scope.close

    scope.close = ->
      Loading.message = "Taking you back to the home page"
      Navigation.go "/"
```
assistant