From 64403c353eeb6314f17877e75de15e86c2039fed Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Mon, 4 Jan 2016 15:26:30 -0600 Subject: [PATCH] Corrects CC Menu url CC Menu URL was an empty placeholder. This completes it with a URL --- controller/badge.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controller/badge.go b/controller/badge.go index 6ddf402b..b8cb8942 100644 --- a/controller/badge.go +++ b/controller/badge.go @@ -1,9 +1,12 @@ package controller import ( + "fmt" + "github.com/gin-gonic/gin" "github.com/drone/drone/model" + "github.com/drone/drone/shared/httputil" "github.com/drone/drone/store" ) @@ -73,6 +76,7 @@ func GetCC(c *gin.Context) { return } - cc := model.NewCC(repo, builds[0], "") + url := fmt.Sprintf("%s/%s/%d", httputil.GetURL(c.Request), repo.FullName, builds[0].Number) + cc := model.NewCC(repo, builds[0], url) c.XML(200, cc) }