diff options
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/context.go | 1 | ||||
-rw-r--r-- | modules/context/repo.go | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index 0faa5c495c..faed99da1f 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -121,6 +121,7 @@ func (ctx *Context) NotFound(title string, err error) { } } + ctx.Data["IsRepo"] = ctx.Repo.Repository != nil ctx.Data["Title"] = "Page Not Found" ctx.HTML(http.StatusNotFound, base.TplName("status/404")) } diff --git a/modules/context/repo.go b/modules/context/repo.go index f9e366ed48..07873a3c6c 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -337,6 +337,11 @@ func RepoAssignment() macaron.Handler { ctx.Data["RepoLink"] = ctx.Repo.RepoLink ctx.Data["RepoRelPath"] = ctx.Repo.Owner.Name + "/" + ctx.Repo.Repository.Name + unit, err := ctx.Repo.Repository.GetUnit(models.UnitTypeExternalTracker) + if err == nil { + ctx.Data["RepoExternalIssuesLink"] = unit.ExternalTrackerConfig().ExternalTrackerURL + } + tags, err := ctx.Repo.GitRepo.GetTags() if err != nil { ctx.ServerError("GetTags", err) |