summaryrefslogtreecommitdiffstats
path: root/routes/routes.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-02-18 14:16:43 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-02-18 14:17:47 +0530
commit1574bbecb5b2856b2018d064a32d2e7f484a58b1 (patch)
tree0d951885ad44a3df2d0ebeaf99eac2c47ca72c04 /routes/routes.go
parentd5a33e9150da61d95ad3ae06f6754a6dd101124a (diff)
downloadlegit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.gz
legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.tar.bz2
legit-1574bbecb5b2856b2018d064a32d2e7f484a58b1.zip
cleaner titles
by nilix
Diffstat (limited to '')
-rw-r--r--routes/routes.go3
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)