From 30eb79dfdc1ac6375da57d76b0d9a4f9e97b400e Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 9 Jun 2015 15:36:16 +0100 Subject: [PATCH] Add link to DataJoy that shows randomly 50% of the time --- .../web/app/views/project/list/side-bar.jade | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/services/web/app/views/project/list/side-bar.jade b/services/web/app/views/project/list/side-bar.jade index a287ce5a23..4fee3eefd8 100644 --- a/services/web/app/views/project/list/side-bar.jade +++ b/services/web/app/views/project/list/side-bar.jade @@ -70,19 +70,33 @@ strong #{translate("create_your_first_project")} - if (showUserDetailsArea) - .row-spaced#userProfileInformation(ng-if="projects.length > 0", ng-cloak) - div(ng-controller="UserProfileController") - hr(ng-show="percentComplete < 100") - .text-centered.user-profile(ng-show="percentComplete < 100") - .progress - .progress-bar.progress-bar-info(ng-style="{'width' : (percentComplete+'%')}") - - p.small #{translate("profile_complete_percentage", {percentval:"{{percentComplete}}"})} + - if (Math.random() < 0.5) + .row-spaced + hr + .card.card-thin + p.text-center.small + | Python or R user? - button#completeUserProfileInformation.btn.btn-info( - ng-hide="formVisable", - ng-click="openUserProfileModal()" - ) #{translate("complete")} + 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. + - else + .row-spaced#userProfileInformation(ng-if="projects.length > 0", ng-cloak) + div(ng-controller="UserProfileController") + hr(ng-show="percentComplete < 100") + .text-centered.user-profile(ng-show="percentComplete < 100") + .progress + .progress-bar.progress-bar-info(ng-style="{'width' : (percentComplete+'%')}") + + p.small #{translate("profile_complete_percentage", {percentval:"{{percentComplete}}"})} + + button#completeUserProfileInformation.btn.btn-info( + ng-hide="formVisable", + ng-click="openUserProfileModal()" + ) #{translate("complete")} -if (settings.enableSubscriptions && !hasSubscription) .row-spaced(ng-if="projects.length > 0", ng-cloak).text-centered