list.pug 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. .system-messages(
  20. ng-cloak
  21. ng-controller="SystemMessagesController"
  22. )
  23. .system-message(
  24. ng-repeat="message in messages"
  25. ng-controller="SystemMessageController"
  26. ng-hide="hidden"
  27. )
  28. button(ng-hide="protected",ng-click="hide()").close.pull-right
  29. span(aria-hidden="true") ×
  30. span.sr-only #{translate("close")}
  31. .system-message-content(ng-bind-html="htmlContent")
  32. include ../translations/translation_message
  33. .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}")
  34. .project-list-row(ng-cloak)
  35. .project-list-container.row(ng-if="projects.length > 0")
  36. .project-list-sidebar-wrapper.col-md-2.col-xs-3
  37. aside.project-list-sidebar
  38. include ./list/side-bar
  39. .project-list-main.col-md-10.col-xs-9
  40. include ./list/notifications
  41. include ./list/project-list
  42. .project-list-empty.row(ng-if="projects.length === 0")
  43. .project-list-empty-col.col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8.col-xs-offset-2
  44. include ./list/empty-project-list
  45. .row.row-spaced
  46. .col-sm-12
  47. include ./list/notifications
  48. include ./list/modals
  49. //- include ./list/front-chat