浏览代码

Only show services header if we have some services to render

James Allen 11 年之前
父节点
当前提交
662050b3f9
共有 1 个文件被更改,包括 5 次插入 和 4 次删除
  1. 5 4
      services/web/app/views/project/editor/left-menu.jade

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

@@ -47,10 +47,11 @@ aside#left-menu.full-size(
 		div(ng-show="!anonymous")
 		div(ng-show="!anonymous")
 			h4() #{translate("sync")}
 			h4() #{translate("sync")}
 			!= moduleIncludes("editorLeftMenu:sync", locals)
 			!= moduleIncludes("editorLeftMenu:sync", locals)
-
-	span(ng-show="!anonymous")
-		h4 #{translate("services")}
-		!= moduleIncludes("editorLeftMenu:editing_services", locals)
+	
+	if (moduleIncludesAvailable("editorLeftMenu:editing_services"))
+		span(ng-show="!anonymous")
+			h4 #{translate("services")}
+			!= moduleIncludes("editorLeftMenu:editing_services", locals)
 
 
 
 
 	h4(ng-show="!anonymous") #{translate("settings")}
 	h4(ng-show="!anonymous") #{translate("settings")}