From abb5f422f294b3d5d545aa52e2c431625ee20ffa Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 23 Oct 2014 13:43:23 +0200 Subject: [PATCH] Fix status badge icon --- assets/scripts/app/views/repo/show.coffee | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/assets/scripts/app/views/repo/show.coffee b/assets/scripts/app/views/repo/show.coffee index 4df9293b..125a6e42 100644 --- a/assets/scripts/app/views/repo/show.coffee +++ b/assets/scripts/app/views/repo/show.coffee @@ -28,6 +28,17 @@ Travis.reopen ) ).observes('controller.repo.isLoaded') + 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') + ReposEmptyView: Travis.View.extend template: '' @@ -151,10 +162,6 @@ Travis.reopen permissions.contains parseInt(@get('repo.id')) ).property('currentUser.adminPermissions.length', 'repo.id') - statusImageUrl: (-> - Travis.Urls.statusImage(@get('slug')) - ).property('slug') - displaySettingsLink: (-> @get('hasPushPermission') ).property('hasPushPermission') @@ -163,14 +170,6 @@ Travis.reopen @get('hasPermission') ).property('hasPermission') - statusImages: -> - @popupCloseAll() - view = Travis.StatusImagesView.create(toolsView: this) - Travis.View.currentPopupView = view - view.appendTo($('body')) - event.stopPropagation() - - RepoActionsView: Travis.View.extend templateName: 'repos/show/actions'