Просмотр исходного кода

replace profile completion CTA with affiliationa adding CTA

hugh-obrien 8 лет назад
Родитель
Сommit
8697edc149
1 измененных файлов с 7 добавлено и 11 удалено
  1. 7 11
      services/web/app/views/project/list/side-bar.pug

+ 7 - 11
services/web/app/views/project/list/side-bar.pug

@@ -115,18 +115,14 @@
 	span(ng-controller="LeftHandMenuPromoController",  ng-cloak)
 	span(ng-controller="LeftHandMenuPromoController",  ng-cloak)
 
 
 		.row-spaced#userProfileInformation(ng-if="hasProjects")
 		.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
 		.row-spaced(ng-if="hasProjects && userHasNoSubscription", ng-cloak).text-centered