2014-06-28 07:07:18 -04:00
|
|
|
div.full-size(
|
|
|
|
ng-show="ui.view == 'editor'"
|
|
|
|
layout="pdf"
|
2014-07-22 08:33:01 -04:00
|
|
|
layout-disabled="ui.pdfLayout != 'sideBySide'"
|
2014-07-31 07:42:06 -04:00
|
|
|
mask-iframes-on-resize="true"
|
2014-06-28 07:07:18 -04:00
|
|
|
resize-on="layout:main:resize"
|
2014-07-02 08:23:04 -04:00
|
|
|
resize-proportionally="true"
|
|
|
|
initial-size-east="'50%'"
|
2016-02-23 10:21:22 -05:00
|
|
|
minimum-restore-size-east="300"
|
2016-11-15 05:34:19 -05:00
|
|
|
allow-overflow-on="'center'"
|
2018-10-19 05:34:07 -04:00
|
|
|
custom-toggler-pane=hasFeature('custom-togglers') ? "east" : false
|
|
|
|
custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_pdf") : false
|
|
|
|
custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_pdf") : false
|
2014-06-28 07:07:18 -04:00
|
|
|
)
|
2021-05-17 07:50:19 -04:00
|
|
|
if showSymbolPalette
|
|
|
|
include ./editor-with-symbol-palette
|
|
|
|
else
|
|
|
|
include ./editor-no-symbol-palette
|
2014-06-28 07:07:18 -04:00
|
|
|
|
|
|
|
.ui-layout-east
|
2014-07-22 08:33:01 -04:00
|
|
|
div(ng-if="ui.pdfLayout == 'sideBySide'")
|
2021-09-03 05:06:28 -04:00
|
|
|
if showNewPdfPreview
|
|
|
|
pdf-preview-pane()
|
|
|
|
else
|
|
|
|
include ./pdf
|
2014-06-30 13:35:01 -04:00
|
|
|
|
|
|
|
.ui-layout-resizer-controls.synctex-controls(
|
2014-07-21 07:30:34 -04:00
|
|
|
ng-show="!!pdf.url && settings.pdfViewer == 'pdfjs'"
|
2014-06-30 13:35:01 -04:00
|
|
|
ng-controller="PdfSynctexController"
|
|
|
|
)
|
2017-12-11 11:55:50 -05:00
|
|
|
a.btn.btn-default.btn-xs.synctex-control.synctex-control-goto-pdf(
|
2017-01-31 09:57:22 -05:00
|
|
|
tooltip=translate('go_to_code_location_in_pdf')
|
2014-06-30 13:35:01 -04:00
|
|
|
tooltip-placement="right"
|
|
|
|
tooltip-append-to-body="true"
|
|
|
|
ng-click="syncToPdf()"
|
2020-08-18 09:08:49 -04:00
|
|
|
ng-disabled="syncToPdfInFlight"
|
2014-06-30 13:35:01 -04:00
|
|
|
)
|
2020-08-18 09:08:49 -04:00
|
|
|
i.synctex-control-icon(ng-show="!syncToPdfInFlight")
|
|
|
|
i.synctex-spin-icon.fa.fa-refresh.fa-spin(ng-show="syncToPdfInFlight")
|
2017-12-11 11:55:50 -05:00
|
|
|
a.btn.btn-default.btn-xs.synctex-control.synctex-control-goto-code(
|
2020-10-07 06:48:47 -04:00
|
|
|
tooltip=translate('go_to_pdf_location_in_code')
|
2014-06-30 13:35:01 -04:00
|
|
|
tooltip-placement="right"
|
|
|
|
tooltip-append-to-body="true"
|
|
|
|
ng-click="syncToCode()"
|
2020-08-18 09:08:49 -04:00
|
|
|
ng-disabled="syncToCodeInFlight"
|
2014-06-30 13:35:01 -04:00
|
|
|
)
|
2020-08-18 09:08:49 -04:00
|
|
|
i.synctex-control-icon(ng-show="!syncToCodeInFlight")
|
|
|
|
i.synctex-spin-icon.fa.fa-refresh.fa-spin(ng-show="syncToCodeInFlight")
|
2018-10-19 05:34:07 -04:00
|
|
|
|
2014-07-22 08:33:01 -04:00
|
|
|
div.full-size(
|
|
|
|
ng-if="ui.pdfLayout == 'flat'"
|
|
|
|
ng-show="ui.view == 'pdf'"
|
|
|
|
)
|
2021-09-03 05:06:28 -04:00
|
|
|
if showNewPdfPreview
|
|
|
|
pdf-preview-pane()
|
|
|
|
else
|
|
|
|
include ./pdf
|
2019-12-16 05:55:45 -05:00
|
|
|
|
|
|
|
// fallback, shown when no file/view is selected
|
|
|
|
div.full-size.no-file-selection(
|
|
|
|
ng-if="!ui.view"
|
|
|
|
)
|
|
|
|
.no-file-selection-message(
|
|
|
|
ng-if="rootFolder.children && rootFolder.children.length > 0"
|
|
|
|
)
|
|
|
|
h3
|
|
|
|
| #{translate('no_selection_select_file')}
|
|
|
|
.no-file-selection-message(
|
|
|
|
ng-if="rootFolder.children && rootFolder.children.length === 0"
|
|
|
|
)
|
|
|
|
h3
|
|
|
|
| #{translate('no_selection_create_new_file')}
|
|
|
|
div(
|
|
|
|
ng-controller="FileTreeController"
|
|
|
|
)
|
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-click="openNewDocModal()"
|
|
|
|
)
|
|
|
|
| #{translate('new_file')}
|
|
|
|
|