Put statusImages in actions
This commit is contained in:
parent
b335bc9f20
commit
e6bde154ec
|
@ -14,17 +14,18 @@ Travis.reopen
|
||||||
@get('repos.isLoaded') && @get('repos.length') == 0
|
@get('repos.isLoaded') && @get('repos.length') == 0
|
||||||
).property('repos.isLoaded', 'repos.length')
|
).property('repos.isLoaded', 'repos.length')
|
||||||
|
|
||||||
statusImages: ->
|
|
||||||
@popupCloseAll()
|
|
||||||
view = Travis.StatusImagesView.create(toolsView: this)
|
|
||||||
Travis.View.currentPopupView = view
|
|
||||||
view.appendTo($('body'))
|
|
||||||
event.stopPropagation()
|
|
||||||
|
|
||||||
statusImageUrl: (->
|
statusImageUrl: (->
|
||||||
Travis.Urls.statusImage(@get('controller.repo.slug'))
|
Travis.Urls.statusImage(@get('controller.repo.slug'))
|
||||||
).property('controller.repo.slug')
|
).property('controller.repo.slug')
|
||||||
|
|
||||||
|
actions:
|
||||||
|
statusImages: ->
|
||||||
|
@popupCloseAll()
|
||||||
|
view = Travis.StatusImagesView.create(toolsView: this)
|
||||||
|
Travis.View.currentPopupView = view
|
||||||
|
view.appendTo($('body'))
|
||||||
|
event.stopPropagation()
|
||||||
|
|
||||||
ReposEmptyView: Travis.View.extend
|
ReposEmptyView: Travis.View.extend
|
||||||
template: (->
|
template: (->
|
||||||
if Travis.config.pro
|
if Travis.config.pro
|
||||||
|
|
Loading…
Reference in New Issue
Block a user