Pull cc.xml URL generation into a helper.
Makes it easier to overwrite in pro-web for tokenized URLs.
This commit is contained in:
parent
6d54d9979f
commit
494871fe5a
|
@ -51,5 +51,5 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
ccxmlStatusUrl: (->
|
ccxmlStatusUrl: (->
|
||||||
"#{Travis.config.api_endpoint}/repos/#{@slug}/cc.xml"
|
Travis.Urls.ccXml(@slug)
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
statusImage: (slug, branch) ->
|
statusImage: (slug, branch) ->
|
||||||
"#{location.protocol}//#{location.host}/#{slug}.svg" + if branch then "?branch=#{branch}" else ''
|
"#{location.protocol}//#{location.host}/#{slug}.svg" + if branch then "?branch=#{branch}" else ''
|
||||||
|
|
||||||
|
ccXml: (slug) ->
|
||||||
|
"#{Travis.config.api_endpoint}/repos/#{slug}/cc.xml"
|
||||||
|
|
||||||
email: (email) ->
|
email: (email) ->
|
||||||
"mailto:#{email}"
|
"mailto:#{email}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user