list.pug 2.8 KB

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