From c37d627b529fc8d03328fc77efc57b19ecd0e8f0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 6 Mar 2025 22:30:57 +0800 Subject: *: 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 +++++++++----------------- 6 files changed, 41 insertions(+), 17 deletions(-) diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl index 4783162..7b11f22 100644 --- a/templates/_group_view.tmpl +++ b/templates/_group_view.tmpl @@ -9,6 +9,10 @@ Subgroups + + Name + Description + {{- range .subgroups }} @@ -29,6 +33,10 @@ Repos + + Name + Description + diff --git a/templates/index.tmpl b/templates/index.tmpl index 2e039a9..58aadc1 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -17,6 +17,10 @@ Groups + + Name + Description + {{- range .groups }} diff --git a/templates/repo_contrib_index.tmpl b/templates/repo_contrib_index.tmpl index 512e352..a50a300 100644 --- a/templates/repo_contrib_index.tmpl +++ b/templates/repo_contrib_index.tmpl @@ -18,6 +18,11 @@ Merge requests + + Name + Description + Status + {{- range .merge_requests }} diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 3ce6d33..617b8ad 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -47,6 +47,11 @@ Recent commits (see all) + + Title + Author + Author Date + {{- range .commits }} @@ -69,6 +74,11 @@ /{{ if .ref_name }} on {{ .ref_name }}{{ end }} + + Mode + Filename + Size + {{- $ref_type := .ref_type }} diff --git a/templates/repo_raw_dir.tmpl b/templates/repo_raw_dir.tmpl index 07f577a..924df0f 100644 --- a/templates/repo_raw_dir.tmpl +++ b/templates/repo_raw_dir.tmpl @@ -19,6 +19,11 @@ (Raw) /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }} + + Mode + Filename + Size + {{- $path_spec := .path_spec }} diff --git a/templates/repo_tree_dir.tmpl b/templates/repo_tree_dir.tmpl index ab9788b..a62139c 100644 --- a/templates/repo_tree_dir.tmpl +++ b/templates/repo_tree_dir.tmpl @@ -18,6 +18,11 @@ /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }} + + Mode + Filename + Size + @@ -38,24 +43,11 @@
-
- {{ if .readme }} - - - - - - - - - - - -
{{ .readme_filename }}
- {{ .readme -}} -
- {{ end }} + {{ if .readme }} +
+ {{ .readme -}}
+ {{ end }} -- cgit v1.2.3