Add cc.xml status url.
This commit is contained in:
parent
dfdc392690
commit
cf82a50268
|
@ -16,6 +16,7 @@
|
||||||
when 'AsciiDoc' then @asciidocStatusImage()
|
when 'AsciiDoc' then @asciidocStatusImage()
|
||||||
when 'Rst' then @rstStatusImage()
|
when 'Rst' then @rstStatusImage()
|
||||||
when 'POD' then @podStatusImage()
|
when 'POD' then @podStatusImage()
|
||||||
|
when 'cc.xml' then @ccxmlStatusUrl()
|
||||||
|
|
||||||
urlRepo: (->
|
urlRepo: (->
|
||||||
"https://#{location.host}/#{@slug}"
|
"https://#{location.host}/#{@slug}"
|
||||||
|
@ -48,3 +49,7 @@
|
||||||
podStatusImage: (->
|
podStatusImage: (->
|
||||||
"=for HTML <a href=\"#{@url}\"><img src=\"#{@statusImageUrl()}\"></a>"
|
"=for HTML <a href=\"#{@url}\"><img src=\"#{@statusImageUrl()}\"></a>"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ccxmlStatusUrl: (->
|
||||||
|
"#{Travis.config.api_endpoint}/repos/#{@slug}/cc.xml"
|
||||||
|
)
|
||||||
|
|
|
@ -16,7 +16,8 @@ Travis.StatusImagesView = Em.View.extend
|
||||||
'RDOC',
|
'RDOC',
|
||||||
'AsciiDoc',
|
'AsciiDoc',
|
||||||
'Rst',
|
'Rst',
|
||||||
'POD'
|
'POD',
|
||||||
|
'cc.xml'
|
||||||
]
|
]
|
||||||
|
|
||||||
didInsertElement: ->
|
didInsertElement: ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user