overleaf/services/web/app/views/project/editor/left-menu.jade

126 lines
2.8 KiB
Text
Raw Normal View History

2014-06-26 11:39:52 -04:00
aside#left-menu.full-size(
ng-class="{ 'shown': ui.leftMenuShown }"
ng-cloak
)
2014-07-10 09:08:32 -04:00
ul.list-unstyled.nav
li
a(
href="/project"
)
i.fa.fa-list-alt.fa-fw
|   View All Projects
h4 Download
2014-07-10 09:08:32 -04:00
ul.list-unstyled.nav.nav-downloads
li
2014-07-02 06:06:20 -04:00
a(
ng-href="/project/{{project_id}}/download/zip"
target="_blank"
)
i.fa.fa-file-archive-o.fa-2x
br
| Source
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"
tooltip="Please compile your project before downloading the PDF"
tooltip-placement="bottom"
)
i.fa.fa-file-pdf-o.fa-2x
br
| PDF
2014-06-26 11:39:52 -04:00
h4 Settings
2014-07-01 10:57:55 -04:00
form.settings(ng-controller="SettingsController")
.containter-fluid
.form-controls
2014-07-10 09:08:32 -04:00
label(for="compiler") Compiler
select.form-control(
name="compiler"
ng-model="project.compiler"
)
option(value='pdflatex') pdfLaTeX
option(value='latex') LaTeX
option(value='xelatex') XeLaTeX
option(value='lualatex') LuaLaTeX
2014-06-26 11:39:52 -04:00
2014-07-01 10:57:55 -04:00
.form-controls
2014-07-10 09:08:32 -04:00
label(for="spellCheckLanguage") Spell Check
select.form-control(
name="spellCheckLanguage"
ng-model="project.spellCheckLanguage"
)
option(value="") Off
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-10 09:08:32 -04:00
label(for="autoComplete") Auto-Complete
select.form-control(
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-10 09:08:32 -04:00
label(for="theme") Theme
select.form-control(
name="theme"
ng-model="settings.theme"
)
each theme in themes
option(value=theme) #{theme}
2014-06-26 11:39:52 -04:00
2014-07-01 10:57:55 -04:00
.form-controls
2014-07-10 09:08:32 -04:00
label(for="mode") Keybindings
select.form-control(
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-10 09:08:32 -04:00
label(for="fontSize") Font Size
select.form-control(
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-07-10 09:08:32 -04:00
label(for="pdfViewer") PDF Viewer
select.form-control(
name="pdfViewer"
ng-model="settings.pdfViewer"
)
option(value="pdfjs") Built-In
option(value="native") Native
span(ng-controller="TemplatesController", ng-show="hasPermission('admin')")
h4() Publish
ul.list-unstyled.nav()
li
a(ng-click="openPublishTemplateModal()")
i.fa.fa-list-alt.fa-fw
|   Publish as Template
2014-07-15 12:56:09 -04:00
2014-06-26 11:39:52 -04:00
#left-menu-mask(
ng-show="ui.leftMenuShown",
ng-click="ui.leftMenuShown = false"
ng-cloak
)