diff options
Diffstat (limited to '')
-rw-r--r-- | routes/routes.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) |