 
     @render 'repos',   outlet: 'left', into: 'index'
 
+    if Travis.config.pro
+      @render 'sidebar', outlet: 'right'
+
   setupController: (controller)->
     # TODO: this is redundant with my_repositories and recent routes
     toActivate = if @signedIn() then 'owned' else 'recent'

  signedIn: ->
    @controllerFor('currentUser').get('content')

Travis.ApplicationRoute = Travis.Route.extend
  actions:
    redirectToGettingStarted: ->
      # do nothing, we handle it only in index path

    afterSignIn: ->
      @transitionTo('index')
      return true

  redirect: ->
    if @signedIn()
      @transitionTo('index')

Travis.SettingsRoute = Travis.Route.extend
  needsAuth: true
