File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ func (IndexController) NewIndex(ctx echo.Context) error {
44
44
SetCookie (ctx , "INDEX_TAB" , tab )
45
45
46
46
data := logic .DefaultIndex .FindData (ctx , tab )
47
+ data ["nodes" ] = logic .GenNodes ()
47
48
48
49
return render (ctx , "new_index.html" , data )
49
50
}
Original file line number Diff line number Diff line change 107
107
</ tbody > </ table >
108
108
</ div >
109
109
{{end}}
110
-
110
+
111
111
</ div >
112
+
113
+ < div class ="sep20 "> </ div >
114
+ < div class ="box_white ">
115
+ < div class ="cell ">
116
+ < span class ="cc "> 节点导航</ span >
117
+ </ div >
118
+ {{range .nodes}}
119
+ < div class ="cell ">
120
+ < table cellpadding ="0 " cellspacing ="0 " border ="0 "> < tbody >
121
+ < tr >
122
+ {{range $parent, $children := .}}
123
+ < td align ="right " width ="65 "> < span class ="cc "> {{$parent}}</ span > </ td >
124
+ < td style ="line-height: 200%; padding-left: 10px; word-break: keep-all; ">
125
+ {{range $children}}
126
+ < a href ="/go/{{.ename}} " style ="font-size: 14px; " class ="noul " title ="{{.name}} "> {{.name}}</ a >
127
+ {{end}}
128
+ </ td >
129
+ {{end}}
130
+ </ tr >
131
+ </ tbody > </ table >
132
+ </ div >
133
+ {{end}}
134
+
135
+ </ div >
136
+
112
137
</ div >
113
138
< div class ="col-md-3 col-sm-6 ">
114
139
< div class ="sep20 "> </ div >
You can’t perform that action at this time.
0 commit comments