2016-02-04 09:28:31 -05:00
|
|
|
span(ng-controller="NotificationsController").userNotifications
|
|
|
|
ul.list-unstyled.notifications-list(
|
|
|
|
ng-if="notifications.length > 0",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
li.notification_entry(
|
2016-09-21 06:59:35 -04:00
|
|
|
ng-repeat="notification in notifications",
|
2016-02-04 09:28:31 -05:00
|
|
|
)
|
2016-09-21 06:59:35 -04:00
|
|
|
.row(ng-hide="notification.hide")
|
2016-02-04 09:28:31 -05:00
|
|
|
.col-xs-12
|
2018-06-12 04:54:54 -04:00
|
|
|
div(ng-switch="notification.templateKey")
|
|
|
|
.alert.alert-info(ng-switch-when="notification_project_invite", ng-controller="ProjectInviteNotificationController")
|
|
|
|
div.notification_inner
|
|
|
|
.notification_body(ng-show="!notification.accepted")
|
|
|
|
| !{translate("notification_project_invite_message")}
|
|
|
|
a.pull-right.btn.btn-sm.btn-info(href, ng-click="accept()", ng-disabled="notification.inflight")
|
|
|
|
span(ng-show="!notification.inflight") #{translate("join_project")}
|
|
|
|
span(ng-show="notification.inflight")
|
2018-11-19 04:41:34 -05:00
|
|
|
i.fa.fa-fw.fa-spinner.fa-spin(aria-hidden="true")
|
2018-06-12 04:54:54 -04:00
|
|
|
|
|
|
|
|
| #{translate("joining")}...
|
|
|
|
.notification_body(ng-show="notification.accepted")
|
|
|
|
| !{translate("notification_project_invite_accepted_message")}
|
|
|
|
a.pull-right.btn.btn-sm.btn-info(href="/project/{{ notification.messageOpts.projectId }}") #{translate("open_project")}
|
|
|
|
span().notification_close
|
|
|
|
button(ng-click="dismiss(notification)").close.pull-right
|
|
|
|
span(aria-hidden="true") ×
|
|
|
|
span.sr-only #{translate("close")}
|
2018-09-02 10:22:45 -04:00
|
|
|
.alert.alert-info(ng-switch-when="notification_ip_matched_affiliation")
|
|
|
|
div.notification_inner
|
|
|
|
.notification_body
|
2018-09-05 06:02:13 -04:00
|
|
|
| It looks like you're at
|
|
|
|
strong {{ notification.messageOpts.university_name }}! <br/>
|
|
|
|
| Did you know that {{notification.messageOpts.university_name}} is providing
|
|
|
|
strong free Overleaf Professional accounts
|
|
|
|
| to everyone at {{notification.messageOpts.university_name}}? <br/>
|
|
|
|
| Add an institutional email address to claim your account.
|
2018-09-02 10:22:45 -04:00
|
|
|
a.pull-right.btn.btn-sm.btn-info(href="/user/settings")
|
|
|
|
| Add Affiliation
|
|
|
|
span().notification_close
|
|
|
|
button(ng-click="dismiss(notification)").close.pull-right
|
|
|
|
span(aria-hidden="true") ×
|
|
|
|
span.sr-only #{translate("close")}
|
2018-06-12 04:54:54 -04:00
|
|
|
.alert.alert-info(ng-switch-default)
|
|
|
|
div.notification_inner
|
|
|
|
span(ng-bind-html="notification.html").notification_body
|
|
|
|
span().notification_close
|
|
|
|
button(ng-click="dismiss(notification)").close.pull-right
|
|
|
|
span(aria-hidden="true") ×
|
2018-08-28 07:16:39 -04:00
|
|
|
span.sr-only #{translate("close")}
|
2018-10-11 10:39:54 -04:00
|
|
|
|
|
|
|
ul.list-unstyled.notifications-list(
|
|
|
|
ng-controller="EmailNotificationController",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
li.notification_entry(
|
|
|
|
ng-repeat="userEmail in userEmails",
|
|
|
|
ng-if="!userEmail.confirmedAt && !userEmail.hide"
|
|
|
|
)
|
|
|
|
.row
|
|
|
|
.col-xs-12
|
|
|
|
.alert.alert-warning
|
|
|
|
.notification_inner(
|
|
|
|
ng-if="!userEmail.confirmationInflight"
|
|
|
|
)
|
|
|
|
| #{translate("please_confirm_email", {emailAddress: "{{ userEmail.email }}"})}
|
|
|
|
|
|
|
|
|
a(
|
|
|
|
href
|
|
|
|
ng-click="resendConfirmationEmail(userEmail)"
|
|
|
|
) (#{translate('resend_confirmation_email')})
|
|
|
|
.notification_inner(
|
|
|
|
ng-if="userEmail.confirmationInflight"
|
|
|
|
)
|
2018-11-19 04:41:34 -05:00
|
|
|
i.fa.fa-spinner.fa-spin(aria-hidden="true")
|
2018-10-11 10:39:54 -04:00
|
|
|
|
|
|
|
|
| #{translate('resending_confirmation_email')}…
|