mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-05-15 07:25:26 +08:00
调整界面
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package clusterutils
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
"net/http"
|
||||
)
|
||||
@@ -19,11 +18,4 @@ func (this *ClustersHelper) BeforeAction(action *actions.ActionObject) {
|
||||
}
|
||||
|
||||
action.Data["teaMenu"] = "clusters"
|
||||
|
||||
selectedTabbar, _ := action.Data["mainTab"]
|
||||
|
||||
tabbar := actionutils.NewTabbar()
|
||||
tabbar.Add("集群", "", "/clusters", "", selectedTabbar == "cluster")
|
||||
tabbar.Add("SSH认证", "", "/clusters/grants", "", selectedTabbar == "grant")
|
||||
actionutils.SetTabbar(action, tabbar)
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ func init() {
|
||||
server.
|
||||
Helper(helpers.NewUserMustAuth()).
|
||||
Helper(clusterutils.NewClustersHelper()).
|
||||
Data("teaSubMenu", "grant").
|
||||
Prefix("/clusters/grants").
|
||||
|
||||
// 授权管理
|
||||
|
||||
Reference in New Issue
Block a user