editor.jade 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. div.full-size(
  2. ng-show="ui.view == 'editor'"
  3. layout="pdf"
  4. layout-disabled="ui.pdfLayout != 'sideBySide'"
  5. resize-on="layout:main:resize"
  6. resize-proportionally="true"
  7. initial-size-east="'50%'"
  8. )
  9. .ui-layout-center
  10. .loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
  11. i.fa.fa-spin.fa-refresh
  12. |   Loading...
  13. #editor(
  14. ace-editor="editor",
  15. ng-show="!!editor.sharejs_doc && !editor.opening"
  16. theme="settings.theme",
  17. keybindings="settings.mode",
  18. font-size="settings.fontSize",
  19. auto-complete="settings.autoComplete",
  20. spell-check-language="project.spellCheckLanguage",
  21. highlights="onlineUserCursorHighlights[editor.open_doc_id]"
  22. show-print-margin="false",
  23. sharejs-doc="editor.sharejs_doc",
  24. last-updated="editor.last_updated",
  25. cursor-position="editor.cursorPosition",
  26. goto-line="editor.gotoLine",
  27. resize-on="layout:main:resize,layout:pdf:resize",
  28. annotations="pdf.logEntryAnnotations[editor.open_doc_id]",
  29. read-only="!permissions.write",
  30. on-ctrl-enter="recompile"
  31. )
  32. .ui-layout-east
  33. div(ng-if="ui.pdfLayout == 'sideBySide'")
  34. include ./pdf
  35. .ui-layout-resizer-controls.synctex-controls(
  36. ng-show="!!pdf.url && settings.pdfViewer == 'pdfjs'"
  37. ng-controller="PdfSynctexController"
  38. )
  39. a.btn.btn-default.btn-xs(
  40. tooltip="Go to code location in PDF"
  41. tooltip-placement="right"
  42. tooltip-append-to-body="true"
  43. ng-click="syncToPdf()"
  44. )
  45. i.fa.fa-long-arrow-right
  46. br
  47. a.btn.btn-default.btn-xs(
  48. tooltip-html-unsafe="Go to PDF location in code<br/>(or double click PDF)"
  49. tooltip-placement="right"
  50. tooltip-append-to-body="true"
  51. ng-click="syncToCode()"
  52. )
  53. i.fa.fa-long-arrow-left
  54. div.full-size(
  55. ng-if="ui.pdfLayout == 'flat'"
  56. ng-show="ui.view == 'pdf'"
  57. )
  58. include ./pdf