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
|
2016-09-21 06:59:35 -04:00
|
|
|
.alert.alert-info(ng-if="notification.templateKey == 'notification_project_invite'", ng-controller="ProjectInviteNotificationController")
|
2016-08-17 05:31:05 -04:00
|
|
|
div.notification_inner
|
2016-09-21 06:59:35 -04:00
|
|
|
.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")
|
|
|
|
i.fa.fa-fw.fa-spinner.fa-spin
|
|
|
|
|
|
|
|
|
| #{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")}
|
2016-08-17 05:31:05 -04:00
|
|
|
span().notification_close
|
2016-09-21 06:59:35 -04:00
|
|
|
button(ng-click="dismiss(notification)").close.pull-right
|
|
|
|
span(aria-hidden="true") ×
|
|
|
|
span.sr-only #{translate("close")}
|
|
|
|
.alert.alert-info(ng-if="notification.templateKey != 'notification_project_invite'")
|
|
|
|
div.notification_inner
|
|
|
|
span(ng-bind-html="notification.html").notification_body
|
|
|
|
span().notification_close
|
|
|
|
button(ng-click="dismiss(notification)").close.pull-right
|
2016-08-05 11:41:11 -04:00
|
|
|
span(aria-hidden="true") ×
|
|
|
|
span.sr-only #{translate("close")}
|