27 lines
769 B
CoffeeScript
27 lines
769 B
CoffeeScript
`import Ember from 'ember'`
|
|
`import { gravatarImage } from 'travis/utils/urls'`
|
|
`import GithubUrlPropertievs from 'travis/mixins/github-url-properties'`
|
|
|
|
Controller = Ember.Controller.extend GithubUrlPropertievs,
|
|
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')
|
|
|
|
`export default Controller`
|