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