2014-06-26 11:39:52 -04:00
|
|
|
aside#left-menu.full-size(
|
|
|
|
ng-class="{ 'shown': ui.leftMenuShown }"
|
|
|
|
ng-cloak
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
h4 #{translate("download")}
|
2014-07-02 05:59:18 -04:00
|
|
|
|
2014-07-16 12:01:41 -04:00
|
|
|
ul.list-unstyled.nav.nav-downloads.text-center
|
2014-07-02 05:59:18 -04:00
|
|
|
li
|
2014-07-02 06:06:20 -04:00
|
|
|
a(
|
|
|
|
ng-href="/project/{{project_id}}/download/zip"
|
|
|
|
target="_blank"
|
|
|
|
)
|
2014-07-02 05:59:18 -04:00
|
|
|
i.fa.fa-file-archive-o.fa-2x
|
|
|
|
br
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("source")}
|
2014-07-02 05:59:18 -04:00
|
|
|
li
|
2014-07-02 06:06:20 -04:00
|
|
|
a(
|
2014-07-02 08:29:56 -04:00
|
|
|
ng-href="{{pdf.url}}"
|
2014-07-02 06:06:20 -04:00
|
|
|
target="_blank"
|
|
|
|
ng-if="pdf.url"
|
|
|
|
)
|
|
|
|
i.fa.fa-file-pdf-o.fa-2x
|
|
|
|
br
|
|
|
|
| PDF
|
|
|
|
div.pdf-disabled(
|
|
|
|
ng-if="!pdf.url"
|
2014-08-20 09:31:44 -04:00
|
|
|
tooltip="#{translate('please_compile_pdf_before_download')}"
|
2014-07-02 06:06:20 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
)
|
2014-07-02 05:59:18 -04:00
|
|
|
i.fa.fa-file-pdf-o.fa-2x
|
|
|
|
br
|
|
|
|
| PDF
|
2014-07-16 12:01:41 -04:00
|
|
|
|
2014-07-21 11:10:21 -04:00
|
|
|
span(ng-show="!anonymous")
|
2014-08-21 07:45:19 -04:00
|
|
|
h4 #{translate("actions")}
|
2014-07-17 09:04:21 -04:00
|
|
|
ul.list-unstyled.nav
|
|
|
|
li(ng-controller="CloneProjectController")
|
|
|
|
a(
|
|
|
|
href,
|
|
|
|
ng-click="openCloneProjectModal()"
|
|
|
|
)
|
|
|
|
i.fa.fa-fw.fa-copy
|
2014-10-13 09:45:45 -04:00
|
|
|
| #{translate("copy_project")}
|
2014-07-17 09:04:21 -04:00
|
|
|
li(ng-controller="TemplatesController", ng-show="permissions.admin")
|
2014-07-16 12:01:41 -04:00
|
|
|
a(ng-click="openPublishTemplateModal()")
|
|
|
|
i.fa.fa-external-link.fa-fw
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("publish_as_template")}
|
2014-07-02 05:59:18 -04:00
|
|
|
|
2015-02-05 13:20:25 -05:00
|
|
|
if (moduleIncludesAvailable("editorLeftMenu:sync"))
|
|
|
|
div(ng-show="!anonymous")
|
|
|
|
h4() #{translate("sync")}
|
|
|
|
!{moduleIncludes("editorLeftMenu:sync", locals)}
|
2014-07-17 09:20:29 -04:00
|
|
|
|
2014-07-31 12:07:43 -04:00
|
|
|
h4(ng-show="!anonymous") #{translate("settings")}
|
2014-07-21 11:10:21 -04:00
|
|
|
form.settings(ng-controller="SettingsController", ng-show="!anonymous")
|
2014-07-01 10:57:55 -04:00
|
|
|
.containter-fluid
|
2014-07-21 11:10:21 -04:00
|
|
|
.form-controls(ng-show="permissions.write")
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="compiler") #{translate("compiler")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="compiler"
|
|
|
|
ng-model="project.compiler"
|
|
|
|
)
|
|
|
|
option(value='pdflatex') pdfLaTeX
|
|
|
|
option(value='latex') LaTeX
|
|
|
|
option(value='xelatex') XeLaTeX
|
|
|
|
option(value='lualatex') LuaLaTeX
|
2014-07-21 10:09:19 -04:00
|
|
|
|
2014-07-21 11:10:21 -04:00
|
|
|
.form-controls(ng-show="permissions.write")
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="rootDoc_id") #{translate("main_document")}
|
2014-07-21 10:09:19 -04:00
|
|
|
select(
|
|
|
|
name="rootDoc_id",
|
|
|
|
ng-model="project.rootDoc_id",
|
|
|
|
ng-options="doc.doc.id as doc.path for doc in docs"
|
|
|
|
)
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-01 10:57:55 -04:00
|
|
|
.form-controls
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="spellCheckLanguage") #{translate("spell_check")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="spellCheckLanguage"
|
|
|
|
ng-model="project.spellCheckLanguage"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
option(value="") #{translate("off")}
|
2014-07-10 09:08:32 -04:00
|
|
|
optgroup(label="Language")
|
|
|
|
for language in languages
|
|
|
|
option(
|
|
|
|
value=language.code
|
|
|
|
)= language.name
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-01 10:57:55 -04:00
|
|
|
.form-controls
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="autoComplete") #{translate("auto_complete")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="autoComplete"
|
|
|
|
ng-model="settings.autoComplete"
|
|
|
|
ng-options="o.v as o.n for o in [{ n: 'On', v: true }, { n: 'Off', v: false }]"
|
|
|
|
)
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-01 10:57:55 -04:00
|
|
|
.form-controls
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="theme") #{translate("theme")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="theme"
|
|
|
|
ng-model="settings.theme"
|
|
|
|
)
|
|
|
|
each theme in themes
|
2014-07-25 07:20:08 -04:00
|
|
|
option(value=theme) #{theme.replace(/_/g, ' ')}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-21 11:10:21 -04:00
|
|
|
.form-controls(ng-show="!anonymous")
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="mode") #{translate("keybindings")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="mode"
|
|
|
|
ng-model="settings.mode"
|
|
|
|
)
|
|
|
|
option(value='default') None
|
|
|
|
option(value='vim') Vim
|
|
|
|
option(value='emacs') Emacs
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-07-01 10:57:55 -04:00
|
|
|
.form-controls
|
2014-07-31 12:07:43 -04:00
|
|
|
label(for="fontSize") #{translate("font_size")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="fontSize"
|
|
|
|
ng-model="settings.fontSize"
|
|
|
|
)
|
|
|
|
each size in ['10','11','12','13','14','16','20','24']
|
|
|
|
option(value=size) #{size}px
|
2014-07-01 10:57:55 -04:00
|
|
|
|
|
|
|
.form-controls
|
2014-08-19 09:40:02 -04:00
|
|
|
label(for="pdfViewer") #{translate("pdf_viewer")}
|
2014-07-16 07:09:19 -04:00
|
|
|
select(
|
2014-07-10 09:08:32 -04:00
|
|
|
name="pdfViewer"
|
|
|
|
ng-model="settings.pdfViewer"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
option(value="pdfjs") #{translate("built_in")}
|
|
|
|
option(value="native") #{translate("native")}
|
2014-07-15 12:56:09 -04:00
|
|
|
|
2014-07-31 12:07:43 -04:00
|
|
|
h4 #{translate("hotkeys")}
|
2014-07-22 09:38:32 -04:00
|
|
|
ul.list-unstyled.nav
|
|
|
|
li(ng-controller="HotkeysController")
|
|
|
|
a(ng-click="openHotkeysModal()")
|
|
|
|
i.fa.fa-keyboard-o.fa-fw
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("show_hotkeys")}
|
2014-07-01 06:00:47 -04:00
|
|
|
|
2014-06-26 11:39:52 -04:00
|
|
|
#left-menu-mask(
|
|
|
|
ng-show="ui.leftMenuShown",
|
|
|
|
ng-click="ui.leftMenuShown = false"
|
|
|
|
ng-cloak
|
2014-07-17 09:04:21 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='cloneProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("copy_project")}
|
2014-07-17 09:04:21 -04:00
|
|
|
.modal-body
|
|
|
|
form(name="cloneProjectForm", novalidate)
|
|
|
|
.form-group
|
2014-07-31 12:07:43 -04:00
|
|
|
label #{translate("new_name")}
|
2014-07-17 09:04:21 -04:00
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="New Project Name",
|
|
|
|
required,
|
|
|
|
ng-model="inputs.projectName",
|
|
|
|
on-enter="clone()",
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-disabled="state.inflight"
|
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-17 09:04:21 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-disabled="cloneProjectForm.$invalid || state.inflight"
|
|
|
|
ng-click="clone()"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-hide="state.inflight") #{translate("copy")}
|
|
|
|
span(ng-show="state.inflight") #{translate("copying")}...
|