notifications.pug 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  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. .alert.alert-info(ng-if="notification.templateKey == 'notification_project_invite'", ng-controller="ProjectInviteNotificationController")
  12. div.notification_inner
  13. .notification_body(ng-show="!notification.accepted")
  14. | !{translate("notification_project_invite_message")}
  15. a.pull-right.btn.btn-sm.btn-info(href, ng-click="accept()", ng-disabled="notification.inflight")
  16. span(ng-show="!notification.inflight") #{translate("join_project")}
  17. span(ng-show="notification.inflight")
  18. i.fa.fa-fw.fa-spinner.fa-spin
  19. |  
  20. | #{translate("joining")}...
  21. .notification_body(ng-show="notification.accepted")
  22. | !{translate("notification_project_invite_accepted_message")}
  23. a.pull-right.btn.btn-sm.btn-info(href="/project/{{ notification.messageOpts.projectId }}") #{translate("open_project")}
  24. span().notification_close
  25. button(ng-click="dismiss(notification)").close.pull-right
  26. span(aria-hidden="true") ×
  27. span.sr-only #{translate("close")}
  28. .alert.alert-info(ng-if="notification.templateKey != 'notification_project_invite'")
  29. div.notification_inner
  30. span(ng-bind-html="notification.html").notification_body
  31. span().notification_close
  32. button(ng-click="dismiss(notification)").close.pull-right
  33. span(aria-hidden="true") ×
  34. span.sr-only #{translate("close")}