From 801758b1fd629590e257a12ef61b895476510d49 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 10 Sep 2018 15:07:38 +0100 Subject: [PATCH] add branch to title --- routers/repo/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/view.go b/routers/repo/view.go index 83aa4e9004575..3317d9883c7e2 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -152,7 +152,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st } defer dataRc.Close() - ctx.Data["Title"] = ctx.Data["Title"].(string) + " - " + ctx.Repo.TreePath + ctx.Data["Title"] = ctx.Data["Title"].(string) + " - " + ctx.Repo.TreePath + " at " + ctx.Repo.BranchName ctx.Data["FileSize"] = blob.Size() ctx.Data["FileName"] = blob.Name()