Преглед изворни кода

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

James Allen пре 12 година
родитељ
комит
b5cfe06645
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      services/web/app/views/project/editor/left-menu.jade

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

@@ -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"