editor.jade 1.8 KB

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