Travis.AccountIndexController = Em.Controller.extend
  needs: ['profile', 'currentUser']
  hooksBinding: 'controllers.profile.hooks'
  allHooksBinding: 'controllers.profile.allHooks'
  hooksWithoutAdminBinding: 'controllers.profile.hooksWithoutAdmin'
  userBinding: 'controllers.currentUser'

  sync: ->
    @get('user').sync()

  toggle: (hook) ->
    hook.toggle()

Travis.AccountIndexController = Em.Controller.extend
  needs: ['profile', 'currentUser']
  hooksBinding: 'controllers.profile.hooks'
  allHooksBinding: 'controllers.profile.allHooks'
  hooksWithoutAdminBinding: 'controllers.profile.hooksWithoutAdmin'
  userBinding: 'controllers.currentUser'

  sync: ->
    @get('user').sync()

  toggle: (hook) ->
    hook.toggle()

  showPrivateReposHint: (->
    Travis.config.show_repos_hint == 'private'
  ) .property()

  showPublicReposHint: (->
    Travis.config.show_repos_hint == 'public'
  ) .property()

Fix repository hint on accounts pages.
Fix repository hint on accounts pages.

Accounts and the profile are currently separate controllers, so
whenever you switched the account, the message would be hidden.
