diff --git a/services/web/app/views/project/list/notifications.pug b/services/web/app/views/project/list/notifications.pug index 6dc0b02a4f..55798d6a2b 100644 --- a/services/web/app/views/project/list/notifications.pug +++ b/services/web/app/views/project/list/notifications.pug @@ -4,13 +4,19 @@ if hasFeature('v2-banner') li.notification_entry .row .col-xs-12 - .alert.alert-info + .alert.alert-danger .notification_inner - .notification_body(event-tracking="sees_v2_banner" event-tracking-mb="true" event-segmentation="{location: 'welcome', v2_onboard: true}" event-tracking-trigger="load" event-tracking-send-once="true") - a.btn.btn-info.btn-sm.pull-right(event-tracking="go_to_v2" event-tracking-mb="true" event-segmentation="{location: 'welcome', v2_onboard: true}" event-tracking-trigger="click" href="/user/login_to_ol_v2") Try Overleaf v2 - | ShareLaTeX is joining Overleaf and will become Overleaf v2 in late 2018 (read more). -
- | We’re beta testing Overleaf v2 now and you can try it out with your ShareLaTeX account. + .notification_body(event-tracking="sees_v2_banner_2" event-tracking-mb="true" event-segmentation="{location: 'welcome', v2_onboard: true}" event-tracking-trigger="load" event-tracking-send-once="true") + a.btn.btn-info.btn-sm.pull-right( + event-tracking="go_to_v2" + event-tracking-mb="true" + event-segmentation="{location: 'welcome', v2_onboard: true}" + event-tracking-trigger="click" + href="/user/login_to_ol_v2" + style="margin-left: 8px;" + ) Go to Overleaf v2 + i.fa.fa-bullhorn + |  Good news! Overleaf and ShareLaTeX have joined forces to bring you Overleaf v2, which is based on the ShareLaTeX editor and combines the best of both services. All ShareLaTeX accounts will move to Overleaf v2 on September 4th, 2018 (read more). You can also try Overleaf v2 now. .notification_close button(ng-click="dismiss()" event-tracking="closes_v2_banner" event-tracking-mb="true" event-segmentation="{location: 'welcome', v2_onboard: true}" event-tracking-trigger="click").close.pull-right span(aria-hidden="true") × @@ -60,4 +66,4 @@ span(ng-controller="NotificationsController").userNotifications span().notification_close button(ng-click="dismiss(notification)").close.pull-right span(aria-hidden="true") × - span.sr-only #{translate("close")} \ No newline at end of file + span.sr-only #{translate("close")} diff --git a/services/web/public/coffee/main/project-list/notifications-controller.coffee b/services/web/public/coffee/main/project-list/notifications-controller.coffee index fff75d0f35..647ffd8c88 100644 --- a/services/web/public/coffee/main/project-list/notifications-controller.coffee +++ b/services/web/public/coffee/main/project-list/notifications-controller.coffee @@ -38,11 +38,11 @@ define [ $scope.notification.error = true App.controller "OverleafV2NotificationController", ($scope, localStorage) -> - $scope.visible = !localStorage('overleaf_v2_notification_hidden_at') + $scope.visible = !localStorage('overleaf_v2_2_notification_hidden_at') $scope.dismiss = () -> $scope.visible = false - localStorage('overleaf_v2_notification_hidden_at', Date.now()) + localStorage('overleaf_v2_2_notification_hidden_at', Date.now()) App.controller "OverleafV1NotificationController", ($scope, localStorage) -> $scope.visible = !localStorage('overleaf_v1_notification_hidden_at') @@ -52,4 +52,4 @@ define [ if !$scope.visible localStorage('overleaf_v1_notification_hidden_at', Date.now()) else - localStorage('overleaf_v1_notification_hidden_at', null) \ No newline at end of file + localStorage('overleaf_v1_notification_hidden_at', null)