Put statusImages in actions

This commit is contained in:
Piotr Sarnacki 2015-01-08 14:16:53 +01:00
parent b335bc9f20
commit e6bde154ec

View File

@ -14,17 +14,18 @@ Travis.reopen
@get('repos.isLoaded') && @get('repos.length') == 0
).property('repos.isLoaded', 'repos.length')
statusImages: ->
@popupCloseAll()
view = Travis.StatusImagesView.create(toolsView: this)
Travis.View.currentPopupView = view
view.appendTo($('body'))
event.stopPropagation()
statusImageUrl: (->
Travis.Urls.statusImage(@get('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
template: (->
if Travis.config.pro