diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2023-02-18 14:16:43 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2023-02-18 14:17:47 +0530 |
commit | 1574bbecb5b2856b2018d064a32d2e7f484a58b1 (patch) | |
tree | 0d951885ad44a3df2d0ebeaf99eac2c47ca72c04 /routes/routes.go | |
parent | d5a33e9150da61d95ad3ae06f6754a6dd101124a (diff) | |
download | legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.gz legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.bz2 legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.zip |
cleaner titles
by nilix
Diffstat (limited to 'routes/routes.go')
-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) |