Set correct active class on the navigation menu

This commit is contained in:
Khanh Ngo 2020-04-20 17:32:49 +07:00
parent 85e466698f
commit 7aec01deed
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
6 changed files with 14 additions and 10 deletions

View file

@ -5,3 +5,8 @@ type Interface struct {
Name string `json:"name"`
IPAddress string `json:"ip_address"`
}
// BaseData struct to pass value to the base template
type BaseData struct {
Active string
}