2016-06-16 06:10:35 +00:00
|
|
|
package controllers
|
2016-04-11 08:07:16 +00:00
|
|
|
|
2016-05-16 06:21:59 +00:00
|
|
|
import "os"
|
|
|
|
|
2016-06-16 06:10:35 +00:00
|
|
|
// RepositoryController handles request to /repository
|
2016-04-11 08:07:16 +00:00
|
|
|
type RepositoryController struct {
|
|
|
|
BaseController
|
|
|
|
}
|
|
|
|
|
2016-05-23 07:43:15 +00:00
|
|
|
// Get renders repository page
|
2016-04-11 08:07:16 +00:00
|
|
|
func (rc *RepositoryController) Get() {
|
2016-05-16 06:21:59 +00:00
|
|
|
rc.Data["HarborRegUrl"] = os.Getenv("HARBOR_REG_URL")
|
2016-06-28 15:42:05 +00:00
|
|
|
rc.Forward("page_title_repository", "repository.htm")
|
2016-04-11 08:07:16 +00:00
|
|
|
}
|