Removed unused urls
This commit is contained in:
parent
f71f247d10
commit
e40fa3b26d
|
@ -1,21 +1,4 @@
|
||||||
@Travis.Urls =
|
@Travis.Urls =
|
||||||
repo: (slug) ->
|
|
||||||
"/#{slug}"
|
|
||||||
|
|
||||||
builds: (slug) ->
|
|
||||||
"/#{slug}/builds"
|
|
||||||
|
|
||||||
pullRequests: (slug) ->
|
|
||||||
"/#{slug}/pull_requests"
|
|
||||||
|
|
||||||
branches: (slug) ->
|
|
||||||
"/#{slug}/branches"
|
|
||||||
|
|
||||||
build: (slug, id) ->
|
|
||||||
"/#{slug}/builds/#{id}"
|
|
||||||
|
|
||||||
job: (slug, id) ->
|
|
||||||
"/#{slug}/jobs/#{id}"
|
|
||||||
|
|
||||||
githubPullRequest: (slug, pullRequestNumber) ->
|
githubPullRequest: (slug, pullRequestNumber) ->
|
||||||
"http://github.com/#{slug}/pull/#{pullRequestNumber}"
|
"http://github.com/#{slug}/pull/#{pullRequestNumber}"
|
||||||
|
@ -40,10 +23,3 @@
|
||||||
|
|
||||||
email: (email) ->
|
email: (email) ->
|
||||||
"mailto:#{email}"
|
"mailto:#{email}"
|
||||||
|
|
||||||
account: (login) ->
|
|
||||||
"/profile/#{login}"
|
|
||||||
|
|
||||||
user: (login) ->
|
|
||||||
"/profile/#{login}/me"
|
|
||||||
|
|
||||||
|
|
|
@ -40,10 +40,6 @@
|
||||||
Travis.Helpers.colorForState(@get('build.state'))
|
Travis.Helpers.colorForState(@get('build.state'))
|
||||||
).property('build.state')
|
).property('build.state')
|
||||||
|
|
||||||
urlBuild: (->
|
|
||||||
Travis.Urls.build(@get('repo.slug'), @get('build.id'))
|
|
||||||
).property('repo.slug', 'build.id')
|
|
||||||
|
|
||||||
urlGithubCommit: (->
|
urlGithubCommit: (->
|
||||||
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
||||||
).property('repo.slug', 'commit.sha')
|
).property('repo.slug', 'commit.sha')
|
||||||
|
@ -71,10 +67,6 @@
|
||||||
Travis.Helpers.colorForState(@get('build.state'))
|
Travis.Helpers.colorForState(@get('build.state'))
|
||||||
).property('build.state')
|
).property('build.state')
|
||||||
|
|
||||||
urlBuild: (->
|
|
||||||
Travis.Urls.build(@get('repo.slug'), @get('build.id'))
|
|
||||||
).property('repo.slug', 'build.id')
|
|
||||||
|
|
||||||
urlGithubCommit: (->
|
urlGithubCommit: (->
|
||||||
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
||||||
).property('repo.slug', 'commit.sha')
|
).property('repo.slug', 'commit.sha')
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
Travis.Helpers.colorForState(@get('job.state'))
|
Travis.Helpers.colorForState(@get('job.state'))
|
||||||
).property('job.state')
|
).property('job.state')
|
||||||
|
|
||||||
urlJob: (->
|
|
||||||
Travis.Urls.job(@get('repo.slug'), @get('job.id'))
|
|
||||||
).property('repo.slug', 'job.id')
|
|
||||||
|
|
||||||
JobView: Travis.View.extend
|
JobView: Travis.View.extend
|
||||||
templateName: 'jobs/show'
|
templateName: 'jobs/show'
|
||||||
|
|
||||||
|
@ -30,10 +26,6 @@
|
||||||
Travis.Helpers.colorForState(@get('job.state'))
|
Travis.Helpers.colorForState(@get('job.state'))
|
||||||
).property('job.state')
|
).property('job.state')
|
||||||
|
|
||||||
urlJob: (->
|
|
||||||
Travis.Urls.job(@get('repo.slug'), @get('job.id'))
|
|
||||||
).property('repo.slug', 'job.id')
|
|
||||||
|
|
||||||
urlGithubCommit: (->
|
urlGithubCommit: (->
|
||||||
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
||||||
).property('repo.slug', 'commit.sha')
|
).property('repo.slug', 'commit.sha')
|
||||||
|
|
|
@ -19,14 +19,6 @@
|
||||||
Travis.Helpers.colorForState(@get('repo.lastBuildState'))
|
Travis.Helpers.colorForState(@get('repo.lastBuildState'))
|
||||||
).property('repo.lastBuildState')
|
).property('repo.lastBuildState')
|
||||||
|
|
||||||
urlRepo: (->
|
|
||||||
Travis.Urls.repo(@get('repo.slug'))
|
|
||||||
).property('repo.slug')
|
|
||||||
|
|
||||||
urlLastBuild: (->
|
|
||||||
Travis.Urls.build(@get('repo.slug'), @get('repo.lastBuildId'))
|
|
||||||
).property('repo.slug', 'repo.lastBuildId')
|
|
||||||
|
|
||||||
ReposListTabsView: Travis.View.extend
|
ReposListTabsView: Travis.View.extend
|
||||||
templateName: 'repos/list/tabs'
|
templateName: 'repos/list/tabs'
|
||||||
tabBinding: 'controller.tab'
|
tabBinding: 'controller.tab'
|
||||||
|
|
|
@ -180,10 +180,6 @@
|
||||||
@set('statusImageBranch', null)
|
@set('statusImageBranch', null)
|
||||||
).observes('repo.branches', 'repo.branches.isLoaded', 'build.commit.branch')
|
).observes('repo.branches', 'repo.branches.isLoaded', 'build.commit.branch')
|
||||||
|
|
||||||
urlRepo: (->
|
|
||||||
'https://' + location.host + Travis.Urls.repo(@get('repo.slug'))
|
|
||||||
).property('repo.slug')
|
|
||||||
|
|
||||||
statusImageUrl: (->
|
statusImageUrl: (->
|
||||||
Travis.Urls.statusImage(@get('repo.slug'), @get('statusImageBranch.commit.branch'))
|
Travis.Urls.statusImage(@get('repo.slug'), @get('statusImageBranch.commit.branch'))
|
||||||
).property('repo.slug', 'statusImageBranch')
|
).property('repo.slug', 'statusImageBranch')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user