diff --git a/services/web/app/views/project/list.jade b/services/web/app/views/project/list.jade index 8204aed813..a6a3957720 100644 --- a/services/web/app/views/project/list.jade +++ b/services/web/app/views/project/list.jade @@ -23,7 +23,7 @@ block content .container .row(ng-cloak) - span(ng-show="first_sign_up == 'default' || projects.length > 0") + span(ng-if="projects.length > 0") aside.col-md-2.col-xs-3 include ./list/side-bar @@ -31,7 +31,7 @@ block content include ./list/notifications include ./list/project-list - span(ng-if="first_sign_up == 'minimial' && projects.length == 0") + span(ng-if="projects.length === 0") .col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8 include ./list/empty-project-list diff --git a/services/web/public/coffee/main/project-list/project-list.coffee b/services/web/public/coffee/main/project-list/project-list.coffee index a528c0b96f..313b52ba1f 100644 --- a/services/web/public/coffee/main/project-list/project-list.coffee +++ b/services/web/public/coffee/main/project-list/project-list.coffee @@ -2,7 +2,7 @@ define [ "base" ], (App) -> - App.controller "ProjectPageController", ($scope, $modal, $q, $window, queuedHttp, event_tracking, $timeout, sixpack) -> + App.controller "ProjectPageController", ($scope, $modal, $q, $window, queuedHttp, event_tracking, $timeout) -> $scope.projects = window.data.projects $scope.tags = window.data.tags $scope.notifications = window.data.notifications @@ -12,14 +12,10 @@ define [ $scope.predicate = "lastUpdated" $scope.reverse = true - if $scope.projects.length > 0 - $scope.first_sign_up = "default" - else - sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)-> - $scope.first_sign_up = chosenVariation - $timeout () -> - recalculateProjectListHeight() - , 10 + if $scope.projects.length == 0 + $timeout () -> + recalculateProjectListHeight() + , 10 recalculateProjectListHeight = () -> topOffset = $(".project-list-card")?.offset()?.top