notifications.pug 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. if hasFeature('v2-banner')
  2. .userNotifications
  3. ul.list-unstyled.notifications-list(ng-controller="OverleafV2NotificationController", ng-show="visible")
  4. li.notification_entry
  5. .row
  6. .col-xs-12
  7. .alert.alert-danger
  8. .notification_inner
  9. .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")
  10. a.btn.btn-info.btn-sm.pull-right(
  11. event-tracking="go_to_v2"
  12. event-tracking-mb="true"
  13. event-segmentation="{location: 'welcome', v2_onboard: true}"
  14. event-tracking-trigger="click"
  15. href="/user/login_to_ol_v2"
  16. style="margin-left: 8px;"
  17. ) Go to Overleaf v2
  18. i.fa.fa-bullhorn
  19. | &nbsp;Good news! Overleaf and ShareLaTeX have joined forces to bring you <em>Overleaf v2</em>, which is based on the ShareLaTeX editor and combines the best of both services. All ShareLaTeX accounts will move to Overleaf v2 on <strong>September 4th, 2018</strong> (<a event-tracking="click_v2_read_more" event-tracking-mb="true" event-segmentation="{location: 'welcome', v2_onboard: true}" event-tracking-trigger="click" href="https://www.overleaf.com/blog/654-overleaf-v2-launch-announcement" style="text-decoration: underline">read more</a>). You can also <a href="/user/login_to_ol_v2" style="text-decoration: underline">try Overleaf v2 now</a>.
  20. .notification_close
  21. 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
  22. span(aria-hidden="true") &times;
  23. span.sr-only #{translate("close")}
  24. span(ng-controller="NotificationsController").userNotifications
  25. ul.list-unstyled.notifications-list(
  26. ng-if="notifications.length > 0",
  27. ng-cloak
  28. )
  29. li.notification_entry(
  30. ng-repeat="notification in notifications",
  31. )
  32. .row(ng-hide="notification.hide")
  33. .col-xs-12
  34. div(ng-switch="notification.templateKey")
  35. .alert.alert-info(ng-switch-when="notification_project_invite", ng-controller="ProjectInviteNotificationController")
  36. div.notification_inner
  37. .notification_body(ng-show="!notification.accepted")
  38. | !{translate("notification_project_invite_message")}
  39. a.pull-right.btn.btn-sm.btn-info(href, ng-click="accept()", ng-disabled="notification.inflight")
  40. span(ng-show="!notification.inflight") #{translate("join_project")}
  41. span(ng-show="notification.inflight")
  42. i.fa.fa-fw.fa-spinner.fa-spin
  43. | &nbsp;
  44. | #{translate("joining")}...
  45. .notification_body(ng-show="notification.accepted")
  46. | !{translate("notification_project_invite_accepted_message")}
  47. a.pull-right.btn.btn-sm.btn-info(href="/project/{{ notification.messageOpts.projectId }}") #{translate("open_project")}
  48. span().notification_close
  49. button(ng-click="dismiss(notification)").close.pull-right
  50. span(aria-hidden="true") &times;
  51. span.sr-only #{translate("close")}
  52. .alert.alert-info(ng-switch-when="notification_group_invite")
  53. div.notification_inner
  54. .notification_body
  55. | #{translate("invited_to_join_team")}: {{ notification.messageOpts.groupName }}
  56. a.pull-right.btn.btn-sm.btn-info(href="/user/subscription/domain/join")
  57. | #{translate("join_team")}
  58. span().notification_close
  59. button(ng-click="dismiss(notification)").close.pull-right
  60. span(aria-hidden="true") &times;
  61. span.sr-only #{translate("close")}
  62. .alert.alert-info(ng-switch-when="notification_ip_matched_affiliation")
  63. div.notification_inner
  64. .notification_body
  65. | It looks like you're at
  66. strong {{ notification.messageOpts.university_name }}! <br/>
  67. | Did you know that {{notification.messageOpts.university_name}} is providing
  68. strong free Overleaf Professional accounts
  69. | to everyone at {{notification.messageOpts.university_name}}? <br/>
  70. | Add an institutional email address to claim your account.
  71. a.pull-right.btn.btn-sm.btn-info(href="/user/settings")
  72. | Add Affiliation
  73. span().notification_close
  74. button(ng-click="dismiss(notification)").close.pull-right
  75. span(aria-hidden="true") &times;
  76. span.sr-only #{translate("close")}
  77. .alert.alert-info(ng-switch-default)
  78. div.notification_inner
  79. span(ng-bind-html="notification.html").notification_body
  80. span().notification_close
  81. button(ng-click="dismiss(notification)").close.pull-right
  82. span(aria-hidden="true") &times;
  83. span.sr-only #{translate("close")}