Don't show options that don't make sense for anonymous users

This commit is contained in:
James Allen 2014-07-21 16:10:21 +01:00
parent a35d62c4ae
commit b5cfe06645

View file

@ -31,7 +31,7 @@ aside#left-menu.full-size(
br br
| PDF | PDF
span span(ng-show="!anonymous")
h4 Actions h4 Actions
ul.list-unstyled.nav ul.list-unstyled.nav
li(ng-controller="CloneProjectController") li(ng-controller="CloneProjectController")
@ -47,7 +47,7 @@ aside#left-menu.full-size(
|   Publish as Template |   Publish as Template
span(ng-controller="DropboxController") span(ng-controller="DropboxController", ng-show="!anonymous")
h4() Sync h4() Sync
ul.list-unstyled.nav() ul.list-unstyled.nav()
li li
@ -55,10 +55,10 @@ aside#left-menu.full-size(
i.fa.fa-dropbox.fa-fw i.fa.fa-dropbox.fa-fw
|    Dropbox |    Dropbox
h4 Settings h4(ng-show="!anonymous") Settings
form.settings(ng-controller="SettingsController") form.settings(ng-controller="SettingsController", ng-show="!anonymous")
.containter-fluid .containter-fluid
.form-controls .form-controls(ng-show="permissions.write")
label(for="compiler") Compiler label(for="compiler") Compiler
select( select(
name="compiler" name="compiler"
@ -69,7 +69,7 @@ aside#left-menu.full-size(
option(value='xelatex') XeLaTeX option(value='xelatex') XeLaTeX
option(value='lualatex') LuaLaTeX option(value='lualatex') LuaLaTeX
.form-controls .form-controls(ng-show="permissions.write")
label(for="rootDoc_id") Main document label(for="rootDoc_id") Main document
select( select(
name="rootDoc_id", name="rootDoc_id",
@ -107,7 +107,7 @@ aside#left-menu.full-size(
each theme in themes each theme in themes
option(value=theme) #{theme} option(value=theme) #{theme}
.form-controls .form-controls(ng-show="!anonymous")
label(for="mode") Keybindings label(for="mode") Keybindings
select( select(
name="mode" name="mode"