pandaRouteSetup = (context) ->
  context.route 'project', ->
    @route 'show', path: ':project_id', ->
      @route 'dunlop'
      @route 'tracker-subjects'
      @route 'tracker-subject', path: 'tracker-subject/:tracker_subject_id'
      @route 'add-progress'
      #@route 'tracker-subject', ->
      #  @route 'show'
      @route 'dunlop-generator'
      @route 'analysis'
      @route 'operate'
      @route 'project-instance', ->
        @route 'show', path: ':project_instance_id', ->
          @route 'groups'
          @route 'list'
          @route 'actions'
          @route 'graphs'
      @route 'project-instance-group', ->
        @route 'show', path: ':project_instance_group_id'
      @route 'project-instance-action', ->
        @route 'show', path: ':project_instance_action_id'

  #@route 'project/views', path: 'views'
  context.route 'login'
  #@route 'organization', path: 'organizations/:organization_id'
  context.route 'action-list'

  context.route 'organization', ->
    @route 'show', path: ':organization_id', ->
      @route 'project-actions'

  context.route 'user', ->
    @route 'profile'
    @route 'show', path: ':user_id'


  context.route 'tracker-subject', ->
    @route 'show', path: ':tracker_subject_id', ->
      @route 'tracking-connections'
      @route 'tracker-group', path: 'tracker-groups/:tracker_group_id'
      @route 'project', path: 'projects/:project_id'
  #@route 'tracker-subject/tracker-group', path: 'tracker-subjects/:tracker_subject_id/tracker-groups/:tracker_group_id'
  context.route 'event'
  context.route 'action-event'

  context.route 'meeting-reports'

  context.route 'manual', ->
    @route 'project', ->
      @route 'dunlop'
    @route 'tracker', ->
      @route 'tricks' # dummy/empty now, to genate the index
  true
export {pandaRouteSetup}
export default pandaRouteSetup
