25 lines
672 B
CoffeeScript
25 lines
672 B
CoffeeScript
gravatarImage = Travis.Urls.gravatarImage
|
|
|
|
Controller = Ember.Controller.extend Travis.GithubUrlProperties,
|
|
needs: ['repo']
|
|
repoBinding: 'controllers.repo.repo'
|
|
commitBinding: 'build.commit'
|
|
currentUserBinding: 'controllers.repo.currentUser'
|
|
tabBinding: 'controllers.repo.tab'
|
|
|
|
currentItemBinding: 'build'
|
|
|
|
loading: (->
|
|
@get('build.isLoading')
|
|
).property('build.isLoading')
|
|
|
|
urlCommitterGravatarImage: (->
|
|
gravatarImage(@get('commit.committerEmail'), 40)
|
|
).property('commit.committerEmail')
|
|
|
|
urlAuthorGravatarImage: (->
|
|
gravatarImage(@get('commit.authorEmail'), 40)
|
|
).property('commit.authorEmail')
|
|
|
|
Travis.BuildController = Controller
|