36 lines
897 B
CoffeeScript
36 lines
897 B
CoffeeScript
@Travis.Urls =
|
|
Repository:
|
|
urlGithub: (->
|
|
'http://github.com/%@'.fmt @get('slug')
|
|
).property('slug'),
|
|
|
|
urlGithubWatchers: (->
|
|
'http://github.com/%@/watchers'.fmt @get('slug')
|
|
).property('slug'),
|
|
|
|
urlGithubNetwork: (->
|
|
'http://github.com/%@/network'.fmt @get('slug')
|
|
).property('slug'),
|
|
|
|
urlGithubAdmin: (->
|
|
'http://github.com/%@/admin/hooks#travis_minibucket'.fmt @get('slug')
|
|
).property('slug')
|
|
|
|
statusImage: (->
|
|
'%@.png'.fmt @get('slug')
|
|
).property('slug')
|
|
|
|
Commit:
|
|
urlGithubCommit: (->
|
|
'http://github.com/%@/commit/%@'.fmt @getPath('repository.slug'), @getPath('commit.sha')
|
|
).property('repository.slug', 'commit.sha')
|
|
|
|
urlAuthor: (->
|
|
'mailto:%@'.fmt @getPath('commit.authorEmail')
|
|
).property()
|
|
|
|
urlCommitter: (->
|
|
'mailto:%@'.fmt @getPath('commit.committerEmail')
|
|
).property()
|
|
|