notifications.pug 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. span(ng-controller="NotificationsController").userNotifications
  2. ul.list-unstyled.notifications-list(
  3. ng-if="notifications.length > 0",
  4. ng-cloak
  5. )
  6. li.notification_entry(
  7. ng-repeat="notification in notifications",
  8. )
  9. .row(ng-hide="notification.hide")
  10. .col-xs-12
  11. div(ng-switch="notification.templateKey")
  12. .alert.alert-info(ng-switch-when="notification_project_invite", ng-controller="ProjectInviteNotificationController")
  13. div.notification_inner
  14. .notification_body(ng-show="!notification.accepted")
  15. | !{translate("notification_project_invite_message")}
  16. a.pull-right.btn.btn-sm.btn-info(href, ng-click="accept()", ng-disabled="notification.inflight")
  17. span(ng-show="!notification.inflight") #{translate("join_project")}
  18. span(ng-show="notification.inflight")
  19. i.fa.fa-fw.fa-spinner.fa-spin
  20. |  
  21. | #{translate("joining")}...
  22. .notification_body(ng-show="notification.accepted")
  23. | !{translate("notification_project_invite_accepted_message")}
  24. a.pull-right.btn.btn-sm.btn-info(href="/project/{{ notification.messageOpts.projectId }}") #{translate("open_project")}
  25. span().notification_close
  26. button(ng-click="dismiss(notification)").close.pull-right
  27. span(aria-hidden="true") ×
  28. span.sr-only #{translate("close")}
  29. .alert.alert-info(ng-switch-when="notification_group_invite")
  30. div.notification_inner
  31. .notification_body
  32. | #{translate("invited_to_join_team")}: {{ notification.messageOpts.groupName }}
  33. a.pull-right.btn.btn-sm.btn-info(href="/user/subscription/domain/join")
  34. | #{translate("join_team")}
  35. span().notification_close
  36. button(ng-click="dismiss(notification)").close.pull-right
  37. span(aria-hidden="true") ×
  38. span.sr-only #{translate("close")}
  39. .alert.alert-info(ng-switch-when="notification_ip_matched_affiliation")
  40. div.notification_inner
  41. .notification_body
  42. | It looks like you're at
  43. strong {{ notification.messageOpts.university_name }}! <br/>
  44. | Did you know that {{notification.messageOpts.university_name}} is providing
  45. strong free Overleaf Professional accounts
  46. | to everyone at {{notification.messageOpts.university_name}}? <br/>
  47. | Add an institutional email address to claim your account.
  48. a.pull-right.btn.btn-sm.btn-info(href="/user/settings")
  49. | Add Affiliation
  50. span().notification_close
  51. button(ng-click="dismiss(notification)").close.pull-right
  52. span(aria-hidden="true") &times;
  53. span.sr-only #{translate("close")}
  54. .alert.alert-info(ng-switch-default)
  55. div.notification_inner
  56. span(ng-bind-html="notification.html").notification_body
  57. span().notification_close
  58. button(ng-click="dismiss(notification)").close.pull-right
  59. span(aria-hidden="true") &times;
  60. span.sr-only #{translate("close")}
  61. ul.list-unstyled.notifications-list(
  62. ng-controller="EmailNotificationController",
  63. ng-cloak
  64. )
  65. li.notification_entry(
  66. ng-repeat="userEmail in userEmails",
  67. ng-if="!userEmail.confirmedAt && !userEmail.hide"
  68. )
  69. .row
  70. .col-xs-12
  71. .alert.alert-warning
  72. .notification_inner(
  73. ng-if="!userEmail.confirmationInflight"
  74. )
  75. | #{translate("please_confirm_email", {emailAddress: "{{ userEmail.email }}"})}
  76. |
  77. a(
  78. href
  79. ng-click="resendConfirmationEmail(userEmail)"
  80. ) (#{translate('resend_confirmation_email')})
  81. .notification_inner(
  82. ng-if="userEmail.confirmationInflight"
  83. )
  84. i.fa.fa-spinner.fa-spin
  85. |
  86. | #{translate('resending_confirmation_email')}&hellip;