list.jade 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. //- div(ng-controller="AnnouncementsController", ng-cloak)
  20. //- .alert.alert-success(ng-show="dataRecived")
  21. //- a(href, ng-click="openLink()") {{title}} and {{totalAnnouncements}} others
  22. .row(ng-cloak)
  23. span(ng-if="projects.length > 0")
  24. aside.col-md-2.col-xs-3
  25. include ./list/side-bar
  26. .col-md-10.col-xs-9
  27. include ./list/notifications
  28. include ./list/project-list
  29. span(ng-if="projects.length === 0")
  30. .col-md-offset-2.col-md-8.col-md-offset-2.col-xs-8
  31. include ./list/empty-project-list
  32. include ./list/modals