2014-06-28 07:07:18 -04:00
|
|
|
div.full-size(
|
2022-03-15 09:55:17 -04:00
|
|
|
ng-show="ui.view == 'editor' || ui.view === 'file'"
|
2014-06-28 07:07:18 -04:00
|
|
|
layout="pdf"
|
2022-05-20 04:15:14 -04:00
|
|
|
open-east="ui.pdfOpen"
|
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'"
|
2023-08-23 08:43:25 -04:00
|
|
|
custom-toggler-pane="east"
|
|
|
|
custom-toggler-msg-when-open=translate("tooltip_hide_pdf")
|
|
|
|
custom-toggler-msg-when-closed=translate("tooltip_show_pdf")
|
2014-06-28 07:07:18 -04:00
|
|
|
)
|
2022-12-06 09:56:12 -05:00
|
|
|
if (settings.showCM6SwitchAwaySurvey)
|
2022-11-08 11:36:11 -05:00
|
|
|
cm6-switch-away-survey()
|
2022-11-03 10:24:13 -04:00
|
|
|
|
2021-11-10 05:50:01 -05:00
|
|
|
include ./editor-pane
|
2014-06-28 07:07:18 -04:00
|
|
|
|
|
|
|
.ui-layout-east
|
2021-10-15 05:39:56 -04:00
|
|
|
div(ng-if="ui.pdfLayout == 'sideBySide'")
|
2022-03-15 08:47:01 -04:00
|
|
|
pdf-preview()
|
2014-06-30 13:35:01 -04:00
|
|
|
|
2022-03-15 08:47:01 -04:00
|
|
|
.ui-layout-resizer-controls.synctex-controls(
|
|
|
|
ng-show="settings.pdfViewer !== 'native'"
|
|
|
|
)
|
|
|
|
pdf-synctex-controls()
|
2018-10-19 05:34:07 -04:00
|
|
|
|
2014-07-22 08:33:01 -04:00
|
|
|
div.full-size(
|
2022-07-13 09:17:35 -04:00
|
|
|
ng-if="ui.pdfLayout == 'flat'"
|
|
|
|
ng-show="ui.view == 'pdf'"
|
2014-07-22 08:33:01 -04:00
|
|
|
)
|
2022-03-15 08:47:01 -04:00
|
|
|
pdf-preview()
|
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')}
|
|
|
|
|