list.jade 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. extends ../layout
  2. block content
  3. //- We need to do .replace(/\//g, '\\/') do that '</script>' -> '<\/script>'
  4. //- and doesn't prematurely end the script tag.
  5. script(type="text/javascript").
  6. window.data = {
  7. projects: !{JSON.stringify(projects).replace(/\//g, '\\/')},
  8. tags: !{JSON.stringify(tags).replace(/\//g, '\\/')},
  9. notifications: !{JSON.stringify(notifications).replace(/\//g, '\\/')}
  10. };
  11. window.algolia = {
  12. institutions: {
  13. app_id: '#{algolia_app_id}',
  14. api_key: '#{algolia_api_key}'
  15. }
  16. };
  17. .content.content-alt(ng-controller="ProjectPageController")
  18. .container
  19. .row(ng-cloak)
  20. span(ng-show="first_sign_up == 'default' || projects.length > 0")
  21. aside.col-md-2.col-xs-3
  22. include ./list/side-bar
  23. .col-md-10.col-xs-9
  24. include ./list/notifications
  25. include ./list/project-list
  26. span(ng-if="first_sign_up == 'minimial' && projects.length == 0")
  27. .col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8
  28. include ./list/project-list-minimal
  29. include ./list/modals