overleaf/services/web/public/coffee/main/project-list/left-hand-menu-promo-controller.coffee

10 lines
316 B
CoffeeScript
Raw Normal View History

define [
"base"
], (App) ->
App.controller 'LeftHandMenuPromoController', ($scope) ->
$scope.showDatajoy = Math.random() < 0.5
$scope.hasProjects = window.data.projects.length > 0
$scope.userHasSubscription = window.userHasSubscription
$scope.randomView = _.shuffle(["default", "dropbox", "github"])[0]