add comments on addnew controller code.

This commit is contained in:
kunw 2016-06-22 16:36:48 +08:00
parent 5fe5b40d29
commit 602dc2069d

View File

@ -7,10 +7,12 @@ import (
"github.com/vmware/harbor/utils/log" "github.com/vmware/harbor/utils/log"
) )
// AddNewController handles requests to /add_new
type AddNewController struct { type AddNewController struct {
BaseController BaseController
} }
// Get renders the add new page
func (anc *AddNewController) Get() { func (anc *AddNewController) Get() {
sessionUserID := anc.GetSession("userId") sessionUserID := anc.GetSession("userId")
anc.Data["AddNew"] = false anc.Data["AddNew"] = false