```coffeescript
angular.module('fileManager')
.directive('breadcrumb', ($location)->
  return {
    restrict: 'E'
    scope: true
    template: '<ol class="breadcrumb">' +
                '<li ng-repeat="piece in breadcrumb" class="breadcrumb-part" ng-class="{active: $last}">' +
                  '<a ng-if="!$last" ng-href="#{{piece.link}}">{{piece.value}}</a>' +
                  '<span ng-if="$last">{{piece.value}}</span>' +
                '</li>' +
              '</ol>'
    link: (scope, element, attrs) ->
        #scope.$on('$routeChangeSuccess', ->
        path = $location.path()

        breadcrumb = path.split('/').splice(2)

        result = []
        link   = ''
        for piece in breadcrumb
          link += '/' + piece
          add=
            link: link.replace('#', '%23')
            value: piece
          result.push(add)

        scope.breadcrumb = result
        #)
  }
)```

Update the breadcrumb directive to use the new router and use the actual design.
user
```coffeescript
angular.module('fileManager')
.directive('breadcrumb', ($stateParams)->
  return {
    restrict: 'E'
    template: """
              <div class="breadcrumb">
                  <div class="breadcrumb-separator"><i class="icon icon-arrow-right"></i></div>
                <span ng-repeat="piece in breadcrumb">
                  <div class="breadcrumb-part" ng-class="{'is-active': $last}" ui-sref=".(piece)">{{ piece.value }}</div>
                  <div class="breadcrumb-separator"><i class="icon icon-arrow-right"></i></div>
                </span>
              </div>
              """

    link: (scope, element, attrs) ->
      scope.$watch($stateParams, ->
        path = "/#{$stateParams.path}"
        path = path.split('/')

        result = []
        link   = ''
        for piece in path
          if piece isnt ''
            link += '/' + piece
            add=
              path: link.replace('#', '%23')
              value: piece
            result.push(add)

        scope.breadcrumb = result
      )

  }
)
```
assistant