left-menu.jade 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. aside#left-menu.full-size(
  2. ng-class="{ 'shown': ui.leftMenuShown }"
  3. ng-cloak
  4. )
  5. h4 Download
  6. ul.list-unstyled.nav.nav-downloads
  7. li
  8. a(
  9. ng-href="/project/{{project_id}}/download/zip"
  10. target="_blank"
  11. )
  12. i.fa.fa-file-archive-o.fa-2x
  13. br
  14. | Source
  15. li
  16. a(
  17. ng-href="{{pdf.url}}"
  18. target="_blank"
  19. ng-if="pdf.url"
  20. )
  21. i.fa.fa-file-pdf-o.fa-2x
  22. br
  23. | PDF
  24. div.pdf-disabled(
  25. ng-if="!pdf.url"
  26. tooltip="Please compile your project before downloading the PDF"
  27. tooltip-placement="bottom"
  28. )
  29. i.fa.fa-file-pdf-o.fa-2x
  30. br
  31. | PDF
  32. h4 Settings
  33. form.settings(ng-controller="SettingsController")
  34. .containter-fluid
  35. .form-controls
  36. label(for="compiler") Compiler
  37. select.form-control(
  38. name="compiler"
  39. ng-model="project.compiler"
  40. )
  41. option(value='pdflatex') pdfLaTeX
  42. option(value='latex') LaTeX
  43. option(value='xelatex') XeLaTeX
  44. option(value='lualatex') LuaLaTeX
  45. .form-controls
  46. label(for="spellCheckLanguage") Spell Check
  47. select.form-control(
  48. name="spellCheckLanguage"
  49. ng-model="project.spellCheckLanguage"
  50. )
  51. option(value="") Off
  52. optgroup(label="Language")
  53. for language in languages
  54. option(
  55. value=language.code
  56. )= language.name
  57. .form-controls
  58. label(for="autoComplete") Auto-Complete
  59. select.form-control(
  60. name="autoComplete"
  61. ng-model="settings.autoComplete"
  62. ng-options="o.v as o.n for o in [{ n: 'On', v: true }, { n: 'Off', v: false }]"
  63. )
  64. .form-controls
  65. label(for="theme") Theme
  66. select.form-control(
  67. name="theme"
  68. ng-model="settings.theme"
  69. )
  70. each theme in themes
  71. option(value=theme) #{theme}
  72. .form-controls
  73. label(for="mode") Keybindings
  74. select.form-control(
  75. name="mode"
  76. ng-model="settings.mode"
  77. )
  78. option(value='default') None
  79. option(value='vim') Vim
  80. option(value='emacs') Emacs
  81. .form-controls
  82. label(for="fontSize") Font Size
  83. select.form-control(
  84. name="fontSize"
  85. ng-model="settings.fontSize"
  86. )
  87. each size in ['10','11','12','13','14','16','20','24']
  88. option(value=size) #{size}px
  89. .form-controls
  90. label(for="pdfViewer") PDF Viewer
  91. select.form-control(
  92. name="pdfViewer"
  93. ng-model="settings.pdfViewer"
  94. )
  95. option(value="pdfjs") Built-In
  96. option(value="native") Native
  97. h4 Publish
  98. ul.list-unstyled.nav(ng-controller="TemplatesController")
  99. li
  100. a(ng-click="openPublishTemplateModal()")
  101. i.fa.fa-list-alt.fa-fw
  102. |   Publish as Template
  103. #left-menu-mask(
  104. ng-show="ui.leftMenuShown",
  105. ng-click="ui.leftMenuShown = false"
  106. ng-cloak
  107. )