list.pug 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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-survey-name" data-type="string" content=(survey ? survey.name : undefined))
  15. meta(name="ol-groupsAndEnterpriseBannerVariant" data-type="string" content=groupsAndEnterpriseBannerVariant)
  16. block content
  17. main.content.content-alt.project-list-page#main-content(
  18. ng-controller="ProjectPageController"
  19. role="main"
  20. )
  21. .system-messages(
  22. ng-cloak
  23. ng-controller="SystemMessagesController"
  24. )
  25. .system-message(
  26. ng-repeat="message in messages"
  27. ng-controller="SystemMessageController"
  28. ng-hide="hidden"
  29. )
  30. button(ng-hide="protected",ng-click="hide()").close.pull-right
  31. span(aria-hidden="true") ×
  32. span.sr-only #{translate("close")}
  33. .system-message-content(ng-bind-html="htmlContent")
  34. include ../translations/translation_message
  35. .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}")
  36. .project-list-row(ng-cloak)
  37. .project-list-container.row(ng-if="projects.length > 0")
  38. .project-list-sidebar-wrapper.col-md-2.col-xs-3
  39. aside.project-list-sidebar
  40. include ./list/side-bar
  41. if (survey && survey.name)
  42. .project-list-sidebar-survey(
  43. ng-if="shouldShowSurveyLink"
  44. ng-cloak
  45. )
  46. | #{survey.preText}
  47. a.project-list-sidebar-survey-link(
  48. href=survey.url
  49. target="_blank"
  50. rel="noreferrer noopener"
  51. ) #{survey.linkText}
  52. button.project-list-sidebar-survey-dismiss(
  53. type="button"
  54. title="Dismiss Overleaf survey"
  55. ng-click="dismissSurvey()"
  56. )
  57. span(
  58. aria-hidden="true"
  59. ) ×
  60. .project-list-main.col-md-10.col-xs-9
  61. include ./list/notifications
  62. include ./list/project-list
  63. .project-list-empty.row(ng-if="projects.length === 0")
  64. .project-list-empty-col.col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8.col-xs-offset-2
  65. include ./list/empty-project-list
  66. .row.row-spaced
  67. .col-sm-12
  68. include ./list/notifications
  69. include ./list/modals