2021-02-22 10:01:09 -05:00
include ../../_mixins/reconfirm_affiliation
2019-10-21 12:02:01 -04:00
.user-notifications(ng-controller="NotificationsController")
ul.list-unstyled(
2019-10-29 11:41:13 -04:00
ng-if="notifications.length > 0 && projects.length > 0",
2016-02-04 09:28:31 -05:00
ng-cloak
)
2019-10-21 12:02:01 -04:00
li.notification-entry(
2019-10-29 11:41:13 -04:00
ng-repeat="notification in notifications"
2016-02-04 09:28:31 -05:00
)
2019-10-21 12:02:01 -04:00
div(ng-switch="notification.templateKey" ng-hide="notification.hide")
2019-10-29 11:41:13 -04:00
.alert.alert-info(
ng-switch-when="notification_project_invite",
ng-controller="ProjectInviteNotificationController"
)
.notification-body
span(ng-show="!notification.accepted") !{translate("notification_project_invite_message", { userName: "{{ userName }}", projectName: "{{ projectName }}" })}
span(ng-show="notification.accepted") !{translate("notification_project_invite_accepted_message", { projectName: "{{ projectName }}" })}
.notification-action
a.pull-right.btn.btn-sm.btn-info(
ng-show="notification.accepted",
href="/project/{{ notification.messageOpts.projectId }}"
) #{translate("open_project")}
a.pull-right.btn.btn-sm.btn-info(
href,
ng-click="accept()",
ng-disabled="notification.inflight",
ng-show="!notification.accepted"
)
2019-10-21 12:02:01 -04:00
span(ng-show="!notification.inflight") #{translate("join_project")}
span(ng-show="notification.inflight")
i.fa.fa-fw.fa-spinner.fa-spin(aria-hidden="true")
|
2020-04-22 05:35:33 -04:00
| #{translate("joining")}…
2019-10-21 12:02:01 -04:00
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2020-06-01 11:42:33 -04:00
.alert.alert-info(
ng-switch-when="wfh_2020_upgrade_offer"
)
.notification-body
2020-10-01 04:16:25 -04:00
span Important notice: Your free WFH2020 upgrade came to an end on June 30th 2020. We're still providing a number of special initiatives to help you continue collaborating throughout 2020.
2020-06-01 11:42:33 -04:00
.notification-action
2020-10-01 04:16:25 -04:00
a.pull-right.btn.btn-sm.btn-info(href="https://www.overleaf.com/events/wfh2020") View
2020-06-01 11:42:33 -04:00
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2019-10-29 11:41:13 -04:00
.alert.alert-info(
ng-switch-when="notification_ip_matched_affiliation"
2021-01-19 10:52:20 -05:00
ng-if="notification.messageOpts.ssoEnabled"
2019-10-29 11:41:13 -04:00
)
2019-10-21 12:02:01 -04:00
.notification-body
2021-01-19 10:52:20 -05:00
| !{translate("looks_like_youre_at", {institutionName: '{{notification.messageOpts.university_name}}'}, ['strong'])}
br
| !{translate("you_can_now_log_in_sso", {}, ['strong'])}
br
| #{translate("link_institutional_email_get_started", {}, ['strong'])}
a(
ng-href="{{notification.messageOpts.portalPath || 'https://www.overleaf.com/learn/how-to/Institutional_Login'}}"
) #{translate("find_out_more_nt")}
2019-10-29 11:41:13 -04:00
.notification-action
2021-01-19 10:52:20 -05:00
a.pull-right.btn.btn-sm.btn-info(
2021-05-17 05:38:35 -04:00
ng-href=`{{samlInitPath}}?university_id={{notification.messageOpts.institutionId}}&auto=/project`
2021-01-19 10:52:20 -05:00
)
| #{translate("link_account")}
.notification-close
button.btn-sm(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
.alert.alert-info(
ng-switch-when="notification_ip_matched_affiliation"
ng-if="!notification.messageOpts.ssoEnabled"
)
.notification-body
| !{translate("looks_like_youre_at", {institutionName: '{{notification.messageOpts.university_name}}'}, ['strong'])}
br
| !{translate("did_you_know_institution_providing_professional", {institutionName: '{{notification.messageOpts.university_name}}'}, ['strong'])}
br
| #{translate("add_email_to_claim_features")}
.notification-action
a.pull-right.btn.btn-sm.btn-info(
href="/user/settings"
) #{translate("add_affiliation")}
2019-10-21 12:02:01 -04:00
.notification-close
2019-10-29 11:41:13 -04:00
button.btn-sm(ng-click="dismiss(notification)").close.pull-right
2019-10-21 12:02:01 -04:00
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2019-10-29 11:41:13 -04:00
2020-03-03 11:36:39 -05:00
.alert.alert-danger(
ng-switch-when="notification_tpds_file_limit"
)
.notification-body
| Error: Your project
strong {{ notification.messageOpts.projectName }}
2022-01-19 06:55:33 -05:00
| has gone over the 2000 file limit using an integration (e.g. Dropbox or GitHub) <br/>
2020-03-03 11:36:39 -05:00
| Please decrease the size of your project to prevent further errors.
.notification-action
a.pull-right.btn.btn-sm.btn-info(href="/user/settings")
| Account Settings
.notification-close
button.btn-sm(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2021-02-17 08:00:48 -05:00
.alert.alert-warning(
ng-switch-when="notification_dropbox_duplicate_project_names"
)
.notification-body
2021-07-09 04:34:35 -04:00
p()
| !{translate("dropbox_duplicate_project_names", { projectName: '{{notification.messageOpts.projectName}}'}, ['strong'])}
p()
| !{translate("dropbox_duplicate_project_names_suggestion", {}, ['strong'])}
|
a(href="/learn/how-to/Dropbox_Synchronization#Troubleshooting") #{translate("learn_more")}
|.
2021-02-17 08:00:48 -05:00
.notification-close
button.btn-sm(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2021-05-18 09:40:56 -04:00
.alert.alert-info(
ng-switch-when="notification_dropbox_unlinked_due_to_lapsed_reconfirmation"
)
.notification-body
2021-07-15 05:19:34 -04:00
if user.features.dropbox
| !{translate("dropbox_unlinked_premium_feature", {}, ['strong'])}
| !{translate("can_now_relink_dropbox", {}, [{name: 'a', attrs: {href: '/user/settings#dropboxSettings' }}])}
else
| !{translate("dropbox_unlinked_premium_feature", {}, ['strong'])}
| !{translate("confirm_affiliation_to_relink_dropbox")}
2021-05-18 09:40:56 -04:00
|
a(href="/learn/how-to/Institutional_Email_Reconfirmation") #{translate("learn_more")}
.notification-close
button.btn-sm(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2019-10-29 11:41:13 -04:00
.alert.alert-info(
ng-switch-default
)
2019-10-21 12:02:01 -04:00
span(ng-bind-html="notification.html").notification-body
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2018-10-11 10:39:54 -04:00
2019-10-29 11:41:13 -04:00
ul.list-unstyled(
ng-if="notificationsInstitution.length > 0",
ng-cloak
)
li.notification-entry(
ng-repeat="notification in notificationsInstitution"
)
div(ng-switch="notification.templateKey" ng-hide="notification.hide")
.alert.alert-info(
ng-switch-when="notification_institution_sso_available"
)
.notification-body
p !{translate("can_link_institution_email_acct_to_institution_acct", {appName: settings.appName, email: "{{notification.email}}", institutionName: "{{notification.institutionName}}"})}
2021-11-01 09:25:30 -04:00
div !{translate("doing_this_allow_log_in_through_institution", {appName: settings.appName})}
a(href="/learn/how-to/Institutional_Login") #{translate("learn_more")}
2019-10-29 11:41:13 -04:00
.notification-action
2021-05-17 05:38:35 -04:00
a.btn.btn-sm.btn-info(ng-href="{{samlInitPath}}?university_id={{notification.institutionId}}&auto=/project&email={{notification.email}}")
2019-10-29 11:41:13 -04:00
| #{translate('link_account')}
.alert.alert-info(
ng-switch-when="notification_institution_sso_linked"
)
.notification-body
div !{translate("account_has_been_link_to_institution_account", {appName: settings.appName, email: "{{notification.email}}", institutionName: "{{notification.institutionName}}"})}
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
.alert.alert-warning(
ng-switch-when="notification_institution_sso_non_canonical"
)
.notification-body
2020-03-03 11:36:39 -05:00
div
2019-10-29 11:41:13 -04:00
i.fa.fa-fw.fa-exclamation-triangle(aria-hidden="true")
| !{translate("tried_to_log_in_with_email", {email: "{{notification.requestedEmail}}"})} !{translate("in_order_to_match_institutional_metadata_associated", {email: "{{notification.institutionEmail}}"})}
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
.alert.alert-info(
ng-switch-when="notification_institution_sso_already_registered"
)
.notification-body
| !{translate("tried_to_register_with_email", {appName: settings.appName, email: "{{notification.email}}"})}
| #{translate("we_logged_you_in")}
.notification-action
2019-12-09 10:09:19 -05:00
a.btn.btn-sm.btn-info(href="/learn/how-to/Institutional_Login")
2019-10-29 11:41:13 -04:00
| #{translate("find_out_more")}
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2021-02-18 06:46:08 -05:00
.alert.alert-danger(ng-switch-when="notification_institution_sso_error")
2019-11-12 08:59:04 -05:00
.notification-body
2020-03-03 11:36:39 -05:00
div
2019-11-12 08:59:04 -05:00
i.fa.fa-fw.fa-exclamation-triangle(aria-hidden="true")
2021-02-18 06:46:08 -05:00
| #{translate("generic_something_went_wrong")}.
div(ng-if="notification.error.translatedMessage" ng-bind-html="notification.error.translatedMessage")
div(ng-else="notification.error.message") {{ notification.error.message}}
div(ng-if="notification.error.tryAgain") #{translate("try_again")}.
2019-11-12 08:59:04 -05:00
.notification-close
button(ng-click="dismiss(notification)").close.pull-right
span(aria-hidden="true") ×
span.sr-only #{translate("close")}
2019-10-21 12:02:01 -04:00
ul.list-unstyled(
2018-10-11 10:39:54 -04:00
ng-controller="EmailNotificationController",
ng-cloak
)
2019-10-21 12:02:01 -04:00
li.notification-entry(
2018-10-11 10:39:54 -04:00
ng-repeat="userEmail in userEmails",
2019-10-29 11:41:13 -04:00
ng-if="showConfirmEmail(userEmail) && projects.length > 0"
2018-10-11 10:39:54 -04:00
)
2020-11-09 05:35:18 -05:00
.alert.alert-warning
2019-10-21 12:02:01 -04:00
.notification-body
2020-11-09 05:35:18 -05:00
div(ng-if="!userEmail.confirmationInflight")
| #{translate("please_confirm_email", {emailAddress: "{{ userEmail.email }}"})}
|
a(
href
ng-click="resendConfirmationEmail(userEmail)"
) (#{translate('resend_confirmation_email')})
div(ng-if="userEmail.confirmationInflight")
i.fa.fa-spinner.fa-spin(aria-hidden="true")
|
| #{translate('resending_confirmation_email')}…
div(ng-if="!userEmail.confirmationInflight && userEmail.error" aria-live="polite")
2021-03-10 04:11:33 -05:00
span(ng-if="userEmail.errorMessage") {{ userEmail.errorMessage }}
span(ng-if="!userEmail.errorMessage") #{translate('generic_something_went_wrong')}
2020-11-09 05:35:18 -05:00
2021-02-22 10:01:09 -05:00
ui.list-unstyled(ng-controller="UserAffiliationsReconfirmController")
li.notification-entry(
ng-repeat="userEmail in allInReconfirmNotificationPeriods"
)
.alert.alert-info()
+reconfirmAffiliationNotification('/project')
li.notification-entry(
ng-repeat="userEmail in userEmails"
ng-if="userEmail.samlIdentifier && userEmail.samlIdentifier.providerId === reconfirmedViaSAML"
)
+reconfirmedAffiliationNotification()