From c9b4eee4c589b8b40c02d0c96f887ec991580a24 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 09:33:11 +0800 Subject: Restructure static/templates into forged --- templates/repo_tree_dir.tmpl | 93 -------------------------------------------- 1 file changed, 93 deletions(-) delete mode 100644 templates/repo_tree_dir.tmpl (limited to 'templates/repo_tree_dir.tmpl') diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl deleted file mode 100644 index fc06646..0000000 --- a/templates/repo_tree_dir.tmpl +++ /dev/null @@ -1,93 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -*/}} -{{- define "repo_tree_dir" -}} -{{- $root := . -}} - - - - {{- template "head_common" . -}} - /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}} - - - {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} -
-
-
- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - - - - - - - - - - - - - {{- $path_spec := .path_spec -}} - {{- range .files -}} - - - - - - {{- end -}} - -
- /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end -}} -
ModeFilenameSize
{{- .Mode -}}{{- .Name -}}{{- if not .IsFile -}}/{{- end -}}{{- .Size -}}
-
-
-
-
-
- {{- if .readme -}} -
- {{- .readme -}} -
- {{- end -}} - - - -{{- end -}} -- cgit v1.2.3