From 311befc9ba95b2d2f7db7a5efa2f912a5fa85879 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 22:05:53 +0800 Subject: *.html.tmpl: Rename from *.html --- templates/category_repos.html | 26 ----------- templates/category_repos.html.tmpl | 26 +++++++++++ templates/footer.html | 3 -- templates/footer.html.tmpl | 3 ++ templates/head.html | 5 --- templates/head.html.tmpl | 5 +++ templates/index.html | 26 ----------- templates/index.html.tmpl | 26 +++++++++++ templates/repo_index.html | 91 -------------------------------------- templates/repo_index.html.tmpl | 91 ++++++++++++++++++++++++++++++++++++++ templates/repo_tree_dir.html | 64 --------------------------- templates/repo_tree_dir.html.tmpl | 64 +++++++++++++++++++++++++++ templates/repo_tree_file.html | 19 -------- templates/repo_tree_file.html.tmpl | 19 ++++++++ 14 files changed, 234 insertions(+), 234 deletions(-) delete mode 100644 templates/category_repos.html create mode 100644 templates/category_repos.html.tmpl delete mode 100644 templates/footer.html create mode 100644 templates/footer.html.tmpl delete mode 100644 templates/head.html create mode 100644 templates/head.html.tmpl delete mode 100644 templates/index.html create mode 100644 templates/index.html.tmpl delete mode 100644 templates/repo_index.html create mode 100644 templates/repo_index.html.tmpl delete mode 100644 templates/repo_tree_dir.html create mode 100644 templates/repo_tree_dir.html.tmpl delete mode 100644 templates/repo_tree_file.html create mode 100644 templates/repo_tree_file.html.tmpl diff --git a/templates/category_repos.html b/templates/category_repos.html deleted file mode 100644 index 917b62e..0000000 --- a/templates/category_repos.html +++ /dev/null @@ -1,26 +0,0 @@ -{{- define "group_repos" -}} - - - - {{ template "head_common" . }} - Repos in {{ .group_name }} – Lindenii Forge - - -
-

- Repos in {{ .group_name }} -

- -
- - - -{{- end -}} diff --git a/templates/category_repos.html.tmpl b/templates/category_repos.html.tmpl new file mode 100644 index 0000000..917b62e --- /dev/null +++ b/templates/category_repos.html.tmpl @@ -0,0 +1,26 @@ +{{- define "group_repos" -}} + + + + {{ template "head_common" . }} + Repos in {{ .group_name }} – Lindenii Forge + + +
+

+ Repos in {{ .group_name }} +

+ +
+ + + +{{- end -}} diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index b7a9061..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- define "footer" -}} -Lindenii Forge (source, upstream) -{{- end -}} diff --git a/templates/footer.html.tmpl b/templates/footer.html.tmpl new file mode 100644 index 0000000..b7a9061 --- /dev/null +++ b/templates/footer.html.tmpl @@ -0,0 +1,3 @@ +{{- define "footer" -}} +Lindenii Forge (source, upstream) +{{- end -}} diff --git a/templates/head.html b/templates/head.html deleted file mode 100644 index b2cd487..0000000 --- a/templates/head.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- define "head_common" -}} - - - -{{- end -}} diff --git a/templates/head.html.tmpl b/templates/head.html.tmpl new file mode 100644 index 0000000..b2cd487 --- /dev/null +++ b/templates/head.html.tmpl @@ -0,0 +1,5 @@ +{{- define "head_common" -}} + + + +{{- end -}} diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 3f08355..0000000 --- a/templates/index.html +++ /dev/null @@ -1,26 +0,0 @@ -{{- define "index" -}} - - - - {{ template "head_common" . }} - Categories – Lindenii Forge - - -
-

- Categories -

- -
- - - -{{- end -}} diff --git a/templates/index.html.tmpl b/templates/index.html.tmpl new file mode 100644 index 0000000..3f08355 --- /dev/null +++ b/templates/index.html.tmpl @@ -0,0 +1,26 @@ +{{- define "index" -}} + + + + {{ template "head_common" . }} + Categories – Lindenii Forge + + +
+

+ Categories +

+ +
+ + + +{{- end -}} diff --git a/templates/repo_index.html b/templates/repo_index.html deleted file mode 100644 index 664cce8..0000000 --- a/templates/repo_index.html +++ /dev/null @@ -1,91 +0,0 @@ -{{- define "repo_index" -}} - - - - {{ template "head_common" . }} - {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge - - -
- - - - - - - - - - - - - - {{- range .commits }} - - - - - - - {{- end }} - -
Recent Commits
IDTitleAuthorTime
{{ slice .Hash.String 0 8 }}{{ .Message | first_line }} - - - {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }} -
-
-
- - - - - - - - - - - - - {{- $ref := .ref }} - {{- range .files }} - - - - - - {{- end }} - -
/ on {{ .ref }}
ModeNameSize
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
-
-
-
-
-
-
- {{ if .readme }} - - - - - - - - - - - -
- README.md -
- {{ .readme -}} -
- {{ end }} -
- - - -{{- end -}} diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl new file mode 100644 index 0000000..664cce8 --- /dev/null +++ b/templates/repo_index.html.tmpl @@ -0,0 +1,91 @@ +{{- define "repo_index" -}} + + + + {{ template "head_common" . }} + {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge + + +
+ + + + + + + + + + + + + + {{- range .commits }} + + + + + + + {{- end }} + +
Recent Commits
IDTitleAuthorTime
{{ slice .Hash.String 0 8 }}{{ .Message | first_line }} + + + {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }} +
+
+
+ + + + + + + + + + + + + {{- $ref := .ref }} + {{- range .files }} + + + + + + {{- end }} + +
/ on {{ .ref }}
ModeNameSize
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
+
+
+
+
+
+
+ {{ if .readme }} + + + + + + + + + + + +
+ README.md +
+ {{ .readme -}} +
+ {{ end }} +
+ + + +{{- end -}} diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html deleted file mode 100644 index aa29542..0000000 --- a/templates/repo_tree_dir.html +++ /dev/null @@ -1,64 +0,0 @@ -{{- define "repo_tree_dir" -}} - - - - {{ template "head_common" . }} - {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge - - -
- - - - - - - - - - - - - {{- $path_spec := .path_spec }} - {{- range .files }} - - - - - - {{- end }} - -
- /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} -
ModeNameSize
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
-
-
-
-
-
-
- {{ if .readme }} - - - - - - - - - - - -
- README.md -
- {{ .readme -}} -
- {{ end }} -
- - - -{{- end -}} diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl new file mode 100644 index 0000000..aa29542 --- /dev/null +++ b/templates/repo_tree_dir.html.tmpl @@ -0,0 +1,64 @@ +{{- define "repo_tree_dir" -}} + + + + {{ template "head_common" . }} + {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge + + +
+ + + + + + + + + + + + + {{- $path_spec := .path_spec }} + {{- range .files }} + + + + + + {{- end }} + +
+ /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} on {{ .ref }} +
ModeNameSize
{{ .Mode }}{{ .Name }}{{ if not .Is_file }}/{{ end }}{{ .Size }}
+
+
+
+
+
+
+ {{ if .readme }} + + + + + + + + + + + +
+ README.md +
+ {{ .readme -}} +
+ {{ end }} +
+ + + +{{- end -}} diff --git a/templates/repo_tree_file.html b/templates/repo_tree_file.html deleted file mode 100644 index 7012cb1..0000000 --- a/templates/repo_tree_file.html +++ /dev/null @@ -1,19 +0,0 @@ -{{- define "repo_tree_file" -}} - - - - {{ template "head_common" . }} - - {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} – Lindenii Forge - - -

- /{{ .path_spec }} -

- {{ .file_contents }} - - - -{{- end -}} diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl new file mode 100644 index 0000000..7012cb1 --- /dev/null +++ b/templates/repo_tree_file.html.tmpl @@ -0,0 +1,19 @@ +{{- define "repo_tree_file" -}} + + + + {{ template "head_common" . }} + + {{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} – Lindenii Forge + + +

+ /{{ .path_spec }} +

+ {{ .file_contents }} + + + +{{- end -}} -- cgit v1.2.3