From 8697edc1498f0c14fbedc5008632d77131b679d6 Mon Sep 17 00:00:00 2001 From: hugh-obrien Date: Thu, 13 Sep 2018 12:22:27 +0100 Subject: [PATCH] replace profile completion CTA with affiliationa adding CTA --- .../web/app/views/project/list/side-bar.pug | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/services/web/app/views/project/list/side-bar.pug b/services/web/app/views/project/list/side-bar.pug index b2c8f11315..32868b57c4 100644 --- a/services/web/app/views/project/list/side-bar.pug +++ b/services/web/app/views/project/list/side-bar.pug @@ -115,18 +115,14 @@ span(ng-controller="LeftHandMenuPromoController", ng-cloak) .row-spaced#userProfileInformation(ng-if="hasProjects") - 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}}"})} + div(ng-controller="UserAffiliationsController") + hr(ng-show="userEmails.length == 1 && userEmails[0].affiliations == null") + .text-centered.user-profile(ng-show="userEmails.length == 1 && userEmails[0].affiliations == null") + p Are you affiliated with an institution? - button#completeUserProfileInformation.btn.btn-info( - ng-hide="formVisable", - ng-click="openUserProfileModal()" - ) #{translate("complete")} + a.btn.btn-info( + href="/user/settings" + ) Tell Us .row-spaced(ng-if="hasProjects && userHasNoSubscription", ng-cloak).text-centered