From 6f07ea513e99eebeea334390dca1f622c385cf63 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 21 Jun 2016 13:28:08 +0100 Subject: [PATCH] Remove DataJoy link from the project page. --- services/web/app/views/project/list/side-bar.jade | 13 +------------ .../left-hand-menu-promo-controller.coffee | 5 ++--- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/services/web/app/views/project/list/side-bar.jade b/services/web/app/views/project/list/side-bar.jade index a30127840a..11de6e3b14 100644 --- a/services/web/app/views/project/list/side-bar.jade +++ b/services/web/app/views/project/list/side-bar.jade @@ -94,18 +94,7 @@ - if (showUserDetailsArea) span(ng-controller="LeftHandMenuPromoController", ng-cloak) - .row-spaced(ng-if="showDatajoy") - hr - .card.card-thin - p.text-center.small - | Python or R user? - p.text-center.small - a(href="https://www.getdatajoy.com/", target="_blank").btn.btn-info.btn-small Try DataJoy - p.text-center.small(style="font-size: 0.8em") - a(href="https://www.getdatajoy.com/", target="_blank") DataJoy - | is a new online Python and R editor from ShareLaTeX. - - .row-spaced#userProfileInformation(ng-if="hasProjects && !showDatajoy") + .row-spaced#userProfileInformation(ng-if="hasProjects") div(ng-controller="UserProfileController") hr(ng-show="percentComplete < 100") .text-centered.user-profile(ng-show="percentComplete < 100") diff --git a/services/web/public/coffee/main/project-list/left-hand-menu-promo-controller.coffee b/services/web/public/coffee/main/project-list/left-hand-menu-promo-controller.coffee index 1811c2c64f..7be73281b1 100644 --- a/services/web/public/coffee/main/project-list/left-hand-menu-promo-controller.coffee +++ b/services/web/public/coffee/main/project-list/left-hand-menu-promo-controller.coffee @@ -3,8 +3,7 @@ define [ ], (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] \ No newline at end of file + $scope.randomView = _.shuffle(["default", "dropbox", "github"])[0]