From a2c2c5115bbc06f16facd1f74a0f7476e20cff69 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 6 Nov 2014 14:24:54 +0800 Subject: [PATCH] Fix #134 --- file/files.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/file/files.go b/file/files.go index b02e219..e7a2b87 100644 --- a/file/files.go +++ b/file/files.go @@ -58,7 +58,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) { workspacePath := workspace + conf.PathSeparator + "src" workspaceNode := FileNode{Name: workspace[strings.LastIndex(workspace, conf.PathSeparator)+1:], - Title: workspace, Path: workspacePath, IconSkin: "ico-ztree-dir ", Type: "d", FileNodes: []*FileNode{}} + Title: workspace, Path: workspacePath, IconSkin: "ico-ztree-dir-workspace ", Type: "d", FileNodes: []*FileNode{}} walk(workspacePath, &workspaceNode) @@ -73,8 +73,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) { goapiBuildOKSignal := make(chan bool) go func() { apiNode.Type = "d" - // TOOD: Go API use a special style - apiNode.IconSkin = "ico-ztree-dir " + apiNode.IconSkin = "ico-ztree-dir-api " walk(apiPath, &apiNode)