From a3d2daf4636cae1d21ac8d3c28b3fe0db25a4916 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 10:58:32 +0800 Subject: [PATCH] repo_tree: Add anchors to entries --- templates/repo_tree_dir.html | 4 +++- diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index ed893fdd84f11893da03839cebb61f7879fc57a0..14dc15a589d24a9f15a7b0662d7a547dd2ad5bcd 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -19,10 +19,12 @@ Size +{{- $ref := .ref }} +{{- $path_spec := .path_spec }} {{- range .files }} {{ .Mode }} -{{ .Name }} +{{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }} {{- end }} -- 2.48.1