From c37d627b529fc8d03328fc77efc57b19ecd0e8f0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 06 Mar 2025 22:30:57 +0800 Subject: [PATCH] *: Add column headers to tables --- templates/_group_view.tmpl | 8 ++++++++ templates/index.tmpl | 4 ++++ templates/repo_contrib_index.tmpl | 5 +++++ templates/repo_index.tmpl | 10 ++++++++++ templates/repo_raw_dir.tmpl | 5 +++++ templates/repo_tree_dir.tmpl | 26 +++++++++----------------- diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl index 4783162f09e2893a47a163a1d366014cd444ba3a..7b11f2236312ac4c6e6ef13c906c9ea510f41467 100644 --- a/templates/_group_view.tmpl +++ b/templates/_group_view.tmpl @@ -9,6 +9,10 @@ Subgroups + + Name + Description + {{- range .subgroups }} @@ -29,6 +33,10 @@ + + + + diff --git a/templates/index.tmpl b/templates/index.tmpl index 2e039a9162e4a694daf6db7b58c32c9f0998d541..58aadc1686595960c73d6efa16dfc7ed79779899 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -17,6 +17,10 @@ + + + + {{- range .groups }} diff --git a/templates/repo_contrib_index.tmpl b/templates/repo_contrib_index.tmpl index 512e352318889573fa8fc20f4e31590bb8685b8a..a50a300102d867b5cf75168d5bd934dba9761dee 100644 --- a/templates/repo_contrib_index.tmpl +++ b/templates/repo_contrib_index.tmpl @@ -18,6 +18,11 @@ + + + + + {{- range .merge_requests }} diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 3ce6d330414075fabf449badc51b18ca674c8a83..617b8ad994bb2600a2c63b91786dbd8e0fc90f03 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -47,6 +47,11 @@ + + + + + {{- range .commits }} @@ -68,6 +73,11 @@
Repos
NameDescription
Groups
NameDescription
Merge requests
NameDescriptionStatus
Recent commits (see all)
TitleAuthorAuthor Date
+ + + + + diff --git a/templates/repo_raw_dir.tmpl b/templates/repo_raw_dir.tmpl index 07f577a45ea6fa1c7336c20ec5d825ff741a0471..924df0f76c04633334d9139f567316968215e623 100644 --- a/templates/repo_raw_dir.tmpl +++ b/templates/repo_raw_dir.tmpl @@ -19,6 +19,11 @@ + + + + + {{- $path_spec := .path_spec }} diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl index ab9788b867c7da1df510d2b93cb574e3c160b181..a62139caa6234a22162fd2d237957a3123404883 100644 --- a/templates/repo_tree_dir.tmpl +++ b/templates/repo_tree_dir.tmpl @@ -18,6 +18,11 @@ + + + + + @@ -38,24 +43,11 @@
-
- {{ if .readme }} -
/{{ if .ref_name }} on {{ .ref_name }}{{ end }}
ModeFilenameSize
(Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }}
ModeFilenameSize
/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }}
ModeFilenameSize
- - - - - - - - - - -
{{ .readme_filename }}
- {{ .readme -}} -
- {{ end }} + {{ if .readme }} +
+ {{ .readme -}}
+ {{ end }} -- 2.48.1