aboutsummaryrefslogtreecommitdiff
path: root/templates/tree.html
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
commit7e04040e3510370d754c4afa94d78da24b43d13e (patch)
tree6613ec1419aa64cab78ff89d4d026ff7a8e74a23 /templates/tree.html
parentSome more HTML sanities (diff)
downloadlegitrx-7e04040e3510370d754c4afa94d78da24b43d13e.tar.gz
legitrx-7e04040e3510370d754c4afa94d78da24b43d13e.tar.zst
legitrx-7e04040e3510370d754c4afa94d78da24b43d13e.zip
More HTML sanification
Diffstat (limited to 'templates/tree.html')
-rw-r--r--templates/tree.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/tree.html b/templates/tree.html
index 6634a5c..939767a 100644
--- a/templates/tree.html
+++ b/templates/tree.html
@@ -1,7 +1,16 @@
{{ define "tree" }}
<!DOCTYPE html>
<html>
- {{ template "head" . }}
+ <head>
+ {{ template "generichead" . }}
+ {{ if .parent }}
+ <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .parent }}/</title>
+ {{ else if .files }}
+ <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }})</title>
+ {{ else }}
+ <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): BROKEN???</title>
+ {{ end }}
+ </head>
<body>
{{ template "repoheader" . }}
{{ template "nav" . }}