mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove AB-related logic from template and controller.
This commit is contained in:
parent
e3fe4a2eeb
commit
8c7b9edd21
2 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue