editor.jade 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="true",
  23. spell-check-language="project.spellCheckLanguage",
  24. highlights="onlineUserCursorHighlights[editor.open_doc_id]"
  25. show-print-margin="false",
  26. sharejs-doc="editor.sharejs_doc",
  27. last-updated="editor.last_updated",
  28. cursor-position="editor.cursorPosition",
  29. goto-line="editor.gotoLine",
  30. resize-on="layout:main:resize,layout:pdf:resize",
  31. annotations="pdf.logEntryAnnotations[editor.open_doc_id]",
  32. read-only="!permissions.write",
  33. on-ctrl-enter="recompile"
  34. )
  35. .ui-layout-east
  36. div(ng-if="ui.pdfLayout == 'sideBySide'")
  37. include ./pdf
  38. .ui-layout-resizer-controls.synctex-controls(
  39. ng-show="!!pdf.url && settings.pdfViewer == 'pdfjs'"
  40. ng-controller="PdfSynctexController"
  41. )
  42. a.btn.btn-default.btn-xs(
  43. tooltip="#{translate('go_to_code_location_in_pdf')}"
  44. tooltip-placement="right"
  45. tooltip-append-to-body="true"
  46. ng-click="syncToPdf()"
  47. )
  48. i.fa.fa-long-arrow-right
  49. br
  50. a.btn.btn-default.btn-xs(
  51. tooltip-html="'#{translate('go_to_pdf_location_in_code')}'"
  52. tooltip-placement="right"
  53. tooltip-append-to-body="true"
  54. ng-click="syncToCode()"
  55. )
  56. i.fa.fa-long-arrow-left
  57. div.full-size(
  58. ng-if="ui.pdfLayout == 'flat'"
  59. ng-show="ui.view == 'pdf'"
  60. )
  61. include ./pdf