layout.jade 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. doctype html
  2. html(itemscope, itemtype='http://schema.org/Product')
  3. head
  4. - if (typeof(gaExperimentCode) !== "undefined" && gaExperimentCode)
  5. #{gaExperimentCode}
  6. - if (typeof(priority_title) !== "undefined" && priority_title)
  7. title= title + ' - Online LaTeX Editor ShareLaTeX'
  8. - else
  9. title= 'Online LaTeX Editor ShareLaTeX - ' +title
  10. link(rel='stylesheet', href='/stylesheets/style.css?fingerprint='+fingerprint('/stylesheets/style.css'))
  11. link(href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css",rel="stylesheet")
  12. meta(itemprop="name" ,content="ShareLaTeX - Real Time Online LaTeX Collaborative Editor in Your Browser")
  13. meta(itemprop="description", content="Online LaTeX editor for collaborative editing, great for Maths or Sciences. You don't need to install LaTeX so it's great for beginners too.")
  14. meta(itemprop="image", content="https://www.sharelatex.com/favicon.ico")
  15. meta(name="description", content="Online LaTeX editor for collaborative editing, great for Maths or Sciences. You don't need to install LaTeX so it's great for beginners too.")
  16. - if (typeof(gaToken) != "undefined")
  17. script(type='text/javascript').
  18. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  19. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  20. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  21. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  22. ga('create', '#{gaToken}', 'sharelatex.com');
  23. ga('send', 'pageview');
  24. - else
  25. script(type='text/javascript').
  26. window.ga = function() { console.log("Sending to GA", arguments) };
  27. script(type="text/javascript").
  28. window.csrfToken = "#{csrfToken}";
  29. script(src=jsPath+'libs/jquery.js')
  30. script(src=jsPath+'libs/angular-1.2.17.js')
  31. script(src=jsPath+'libs/moment.js')
  32. script(src=jsPath+'libs/bootstrap.js')
  33. script(src=jsPath+'libs/ui-bootstrap-0.11.0.js')
  34. block scripts
  35. - if (typeof(bodyClasses) == "undefined")
  36. - var bodyClasses = []
  37. body(class=bodyClasses)
  38. include layout/navbar
  39. block content
  40. - if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
  41. .modal.hide#scribtexModal
  42. .modal-header
  43. h3 Looking for ScribTeX?
  44. .modal-body
  45. p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
  46. p(style="text-align: center") You can find the page you were looking for here:
  47. p(style="text-align: center")
  48. a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
  49. .modal-footer
  50. button(data-dismiss="modal").btn OK
  51. include layout/footer
  52. - if (typeof(tenderUrl) != "undefined")
  53. script(src="https://#{tenderUrl}/tender_widget.js" )
  54. script(type="text/javascript").
  55. Tender = {
  56. hideToggle: true,
  57. widgetToggles: $(".js-tender-widget"),
  58. category: "questions"
  59. };