list.pug 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. extends ../layout
  2. block vars
  3. - var suppressNavContentLinks = true
  4. block append meta
  5. meta(name="ol-projects" data-type="json" content=projects)
  6. meta(name="ol-tags" data-type="json" content=tags)
  7. meta(name="ol-notifications" data-type="json" content=notifications)
  8. meta(name="ol-notificationsInstitution" data-type="json" content=notificationsInstitution)
  9. meta(name="ol-userAffiliations" data-type="json" content=userAffiliations)
  10. meta(name="ol-userEmails" data-type="json" content=userEmails)
  11. meta(name="ol-userHasNoSubscription" data-type="boolean" content=!!(settings.enableSubscriptions && !hasSubscription))
  12. meta(name="ol-allInReconfirmNotificationPeriods" data-type="json" content=allInReconfirmNotificationPeriods)
  13. meta(name="ol-reconfirmedViaSAML" content=reconfirmedViaSAML)
  14. meta(name="ol-algolia" data-type="json" content={
  15. institutions: {
  16. app_id: algolia_app_id,
  17. api_key: algolia_api_key
  18. }
  19. })
  20. block content
  21. main.content.content-alt.project-list-page(
  22. ng-controller="ProjectPageController"
  23. role="main"
  24. )
  25. .system-messages(
  26. ng-cloak
  27. ng-controller="SystemMessagesController"
  28. )
  29. .system-message(
  30. ng-repeat="message in messages"
  31. ng-controller="SystemMessageController"
  32. ng-hide="hidden"
  33. )
  34. button(ng-hide="protected",ng-click="hide()").close.pull-right
  35. span(aria-hidden="true") ×
  36. span.sr-only #{translate("close")}
  37. .system-message-content(ng-bind-html="htmlContent")
  38. include ../translations/translation_message
  39. .project-list-content(event-tracking=settings.overleaf ? "loads_v2_dash" : "", onboard=settings.overleaf ? "true" : "", event-tracking-trigger=settings.overleaf ? "load" : "", event-tracking-mb="true", event-segmentation="{location: 'dash', v2_onboard: true}")
  40. .project-list-row(ng-cloak)
  41. .project-list-container.row(ng-if="projects.length > 0")
  42. .project-list-sidebar-wrapper.col-md-2.col-xs-3
  43. aside.project-list-sidebar
  44. include ./list/side-bar
  45. .project-list-main.col-md-10.col-xs-9
  46. include ./list/notifications
  47. include ./list/project-list
  48. .project-list-empty.row(ng-if="projects.length === 0")
  49. .project-list-empty-col.col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8.col-xs-offset-2
  50. include ./list/empty-project-list
  51. .row.row-spaced
  52. .col-sm-12
  53. include ./list/notifications
  54. include ./list/modals