list.pug 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. extends ../layout
  2. block vars
  3. - var suppressNavContentLinks = true
  4. block content
  5. script#data(type="application/json").
  6. !{StringHelper.stringifyJsonForScript({ projects, tags, notifications, notificationsInstitution })}
  7. script(type="text/javascript").
  8. window.data = JSON.parse(document.querySelector("#data").text);
  9. window.algolia = {
  10. institutions: {
  11. app_id: '#{algolia_app_id}',
  12. api_key: '#{algolia_api_key}'
  13. }
  14. };
  15. main.content.content-alt.project-list-page(
  16. ng-controller="ProjectPageController"
  17. role="main"
  18. )
  19. - if(typeof(suppressSystemMessages) == "undefined")
  20. script.
  21. window.systemMessages = !{StringHelper.stringifyJsonForScript(systemMessages)};
  22. .system-messages(
  23. ng-cloak
  24. ng-controller="SystemMessagesController"
  25. )
  26. .system-message(
  27. ng-repeat="message in messages"
  28. ng-controller="SystemMessageController"
  29. ng-hide="hidden"
  30. )
  31. button(ng-click="hide()").close.pull-right
  32. span(aria-hidden="true") ×
  33. span.sr-only #{translate("close")}
  34. .system-message-content(ng-bind-html="htmlContent")
  35. include ../translations/translation_message
  36. .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}")
  37. .project-list-row(ng-cloak)
  38. .project-list-container.row(ng-if="projects.length > 0")
  39. .project-list-sidebar-wrapper.col-md-2.col-xs-3
  40. aside.project-list-sidebar
  41. include ./list/side-bar
  42. .project-list-sidebar-survey(
  43. ng-if="shouldShowSurveyLink"
  44. ng-cloak
  45. )
  46. | What would you like to see next in Overleaf?
  47. |
  48. |
  49. a.project-list-sidebar-survey-link(
  50. href="https://forms.gle/om5t48UUj7LecHMP8"
  51. target="_blank"
  52. rel="noreferrer noopener"
  53. ) Take our short survey
  54. | .
  55. button.project-list-sidebar-survey-dismiss(
  56. type="button"
  57. title="Dismiss Overleaf survey"
  58. ng-click="dismissSurvey()"
  59. )
  60. span(
  61. aria-hidden="true"
  62. ) ×
  63. .project-list-main.col-md-10.col-xs-9
  64. include ./list/notifications
  65. include ./list/project-list
  66. .project-list-empty.row(ng-if="projects.length === 0")
  67. .project-list-empty-col.col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8.col-xs-offset-2
  68. include ./list/empty-project-list
  69. .row.row-spaced
  70. .col-sm-12
  71. include ./list/notifications
  72. include ./list/modals
  73. //- include ./list/front-chat