From 1574bbecb5b2856b2018d064a32d2e7f484a58b1 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 18 Feb 2023 14:16:43 +0530 Subject: cleaner titles by nilix --- routes/routes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/routes.go b/routes/routes.go index 143bb2b..0cf1c35 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -190,6 +190,7 @@ func (d *deps) RepoTree(w http.ResponseWriter, r *http.Request) { data["ref"] = ref data["parent"] = treePath data["desc"] = getDescription(path) + data["dotdot"] = filepath.Dir(treePath) d.listFiles(files, data, w) return @@ -254,7 +255,7 @@ func (d *deps) Log(w http.ResponseWriter, r *http.Request) { data["name"] = name data["ref"] = ref data["desc"] = getDescription(path) - data["dotdot"] = filepath.Dir(path) + data["log"] = true if err := t.ExecuteTemplate(w, "log", data); err != nil { log.Println(err) -- cgit