layout.jade 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. block scripts
  17. - if (typeof(gaToken) != "undefined")
  18. script(type='text/javascript').
  19. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  20. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  21. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  22. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  23. ga('create', '#{gaToken}', 'sharelatex.com');
  24. ga('send', 'pageview');
  25. - else
  26. script(type='text/javascript')
  27. window.ga = function() { console.log("Sending to GA", arguments) };
  28. script(type="text/javscript").
  29. window.csrfToken = "#{csrfToken}";
  30. script(src=jsPath+'libs/jquery.js')
  31. - if (typeof(bodyClasses) == "undefined")
  32. - var bodyClasses = []
  33. body(class=bodyClasses)
  34. include layout/navbar
  35. block content
  36. - if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
  37. .modal.hide#scribtexModal
  38. .modal-header
  39. h3 Looking for ScribTeX?
  40. .modal-body
  41. p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
  42. p(style="text-align: center") You can find the page you were looking for here:
  43. p(style="text-align: center")
  44. a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
  45. .modal-footer
  46. button(data-dismiss="modal").btn OK
  47. include modals
  48. if !locals.supressDefaultJs
  49. script(type='text/javascript').
  50. require = {
  51. "urlArgs" : "fingerprint=#{fingerprint(jsPath + 'main.js')}"
  52. }
  53. script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js?fingerprint=' + fingerprint(jsPath + 'libs/require.js'), baseurl=jsPath)
  54. - if (typeof(tenderUrl) != "undefined")
  55. script(src="https://#{tenderUrl}/tender_widget.js" )
  56. script(type="text/javascript").
  57. Tender = {
  58. hideToggle: true,
  59. widgetToggles: $(".js-tender-widget"),
  60. category: "questions"
  61. };