travis-web/assets/scripts/app/controllers/account_index.coffee
Piotr Sarnacki c7516b458e Show all accounts and hooks in profile
Previously we showed only accounts and repositories, to which you have
admin access. To improve usability, it's better to show all accounts and
all repositories, but explain why part of the repositories are not
manageable.
2013-06-18 17:54:13 +02:00

13 lines
373 B
CoffeeScript

Travis.AccountIndexController = Em.Controller.extend
needs: ['profile', 'currentUser']
hooksBinding: 'controllers.profile.hooks'
allHooksBinding: 'controllers.profile.allHooks'
unAdminisetableHooksBinding: 'controllers.profile.unAdminisetableHooks'
userBinding: 'controllers.currentUser'
sync: ->
@get('user').sync()
toggle: (hook) ->
hook.toggle()