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

Merge pull request #9947 from overleaf/tm-teardown-bts2022-promo

Teardown Back to School 2022 promo banners

GitOrigin-RevId: b26229af17c7ce272632106850fce504cdca04d2
Thomas 3 лет назад
Родитель
Сommit
f6a6e767e6

+ 0 - 25
services/web/app/views/project/list/notifications.pug

@@ -251,28 +251,3 @@ include ../../_mixins/reconfirm_affiliation
 			ng-if="userEmail.samlIdentifier && userEmail.samlIdentifier.providerId === reconfirmedViaSAML"
 		)
 			+reconfirmedAffiliationNotification()
-
-	- var hasPaidAffiliation = userAffiliations.some(affiliation => affiliation.licence && affiliation.licence !== 'free')
-	if settings.enableSubscriptions && !hasSubscription && !hasPaidAffiliation
-		ul.list-unstyled(
-			ng-controller="DismissableNotificationsController",
-			ng-cloak
-		)
-			li.notification-entry(
-				ng-if="shouldShowNotification && projects.length > 0"
-			)
-				.alert.alert-info
-					.notification-body
-						span We're celebrating the new school year! Receive 15% off the first year of an annual Student or Standard subscription now through October 14.
-					.notification-action
-						a.pull-right.btn.btn-sm.btn-info(
-							href="https://www.overleaf.com/events/limited-time-promo-sept2022"
-							event-tracking="promo-click"
-							event-tracking-mb="true"
-							event-tracking-trigger="click"
-							event-segmentation='{"name": "bts2022", "location": "dashboard-banner"}'
-						) Upgrade
-					.notification-close
-						button(ng-click="dismiss()").close.pull-right
-							span(aria-hidden="true") ×
-							span.sr-only #{translate("close")}

+ 0 - 16
services/web/app/views/subscriptions/plans-marketing-v2.pug

@@ -14,22 +14,6 @@ block append meta
 
 block content
 	main.content.content-alt#main-content
-		.container
-			.user-notifications
-				ul.list-unstyled(ng-cloak)
-					li.notification-entry
-						.alert.alert-info
-							.notification-body
-								span We're celebrating the new school year! Receive 15% off the first year of an annual Student or Standard subscription now through October 14.
-							.notification-action
-								a.btn.btn-sm.btn-info(
-									href="https://www.overleaf.com/events/limited-time-promo-sept2022"
-									event-tracking="promo-click"
-									event-tracking-mb="true"
-									event-tracking-trigger="click"
-									event-segmentation='{"name": "bts2022", "location": "plans-v2-banner"}'
-								) Upgrade
-
 		.content-page
 			.plans
 				.container(ng-cloak)

+ 0 - 16
services/web/app/views/subscriptions/plans-marketing.pug

@@ -14,22 +14,6 @@ block append meta
 
 block content
 	main.content.content-alt#main-content
-		.container
-			.user-notifications
-				ul.list-unstyled(ng-cloak)
-					li.notification-entry
-						.alert.alert-info
-							.notification-body
-								span We're celebrating the new school year! Receive 15% off the first year of an annual Student or Standard subscription now through October 14.
-							.notification-action
-								a.btn.btn-sm.btn-info(
-									href="https://www.overleaf.com/events/limited-time-promo-sept2022"
-									event-tracking="promo-click"
-									event-tracking-mb="true"
-									event-tracking-trigger="click"
-									event-segmentation='{"name": "bts2022", "location": "plans-banner"}'
-								) Upgrade
-
 		.content-page
 			.plans
 				.container(ng-cloak)

+ 0 - 13
services/web/frontend/js/main/project-list/notifications-controller.js

@@ -23,19 +23,6 @@ App.controller('NotificationsController', function ($scope, $http) {
   }
 })
 
-App.controller(
-  'DismissableNotificationsController',
-  function ($scope, localStorage) {
-    $scope.shouldShowNotification =
-      localStorage('dismissed-back-to-school-2022') !== true
-
-    $scope.dismiss = () => {
-      localStorage('dismissed-back-to-school-2022', true)
-      $scope.shouldShowNotification = false
-    }
-  }
-)
-
 App.controller('ProjectInviteNotificationController', function ($scope, $http) {
   // Shortcuts for translation keys
   $scope.projectName = $scope.notification.messageOpts.projectName