diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-06 22:30:57 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-06 22:31:12 +0800 |
commit | c37d627b529fc8d03328fc77efc57b19ecd0e8f0 (patch) | |
tree | d3e532cf48afd5edd819027301891d2923ea43e3 | |
parent | Update hosted forge links (diff) | |
download | forge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.tar.gz forge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.tar.zst forge-c37d627b529fc8d03328fc77efc57b19ecd0e8f0.zip |
*: Add column headers to tables
-rw-r--r-- | templates/_group_view.tmpl | 8 | ||||
-rw-r--r-- | templates/index.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_contrib_index.tmpl | 5 | ||||
-rw-r--r-- | templates/repo_index.tmpl | 10 | ||||
-rw-r--r-- | templates/repo_raw_dir.tmpl | 5 | ||||
-rw-r--r-- | 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 @@ <tr> <th colspan="2" class="title-row">Subgroups</th> </tr> + <tr> + <th scope="col">Name</th> + <th scope="col">Description</th> + </tr> </thead> <tbody> {{- range .subgroups }} @@ -29,6 +33,10 @@ <thead> <tr> <th colspan="2" class="title-row">Repos</th> + <tr> + <th scope="col">Name</th> + <th scope="col">Description</th> + </tr> </tr> </thead> <tbody> 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 @@ <tr> <th colspan="2" class="title-row">Groups</th> </tr> + <tr> + <th scope="col">Name</th> + <th scope="col">Description</th> + </tr> </thead> <tbody> {{- 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 @@ <th colspan="3">Merge requests</th> </tr> </thead> + <tr> + <th scope="col">Name</th> + <th scope="col">Description</th> + <th scope="col">Status</th> + </tr> <tbody> {{- range .merge_requests }} <tr> 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 @@ <tr class="title-row"> <th colspan="3">Recent commits (<a href="log/{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">see all</a>)</th> </tr> + <tr> + <th scope="col">Title</th> + <th scope="col">Author</th> + <th scope="col">Author Date</th> + </tr> </thead> <tbody> {{- range .commits }} @@ -69,6 +74,11 @@ <tr class="title-row"> <th colspan="3">/{{ if .ref_name }} on {{ .ref_name }}{{ end }}</th> </tr> + <tr> + <th scope="col">Mode</th> + <th scope="col">Filename</th> + <th scope="col">Size</th> + </tr> </thead> <tbody> {{- $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 }} </th> </tr> + <tr> + <th scope="col">Mode</th> + <th scope="col">Filename</th> + <th scope="col">Size</th> + </tr> </thead> <tbody> {{- $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 @@ <th colspan="3"> /{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }}{{ if .ref_name }} on {{ .ref_name }}{{ end }} </th> + <tr> + <th scope="col">Mode</th> + <th scope="col">Filename</th> + <th scope="col">Size</th> + </tr> </tr> </thead> <tbody> @@ -38,24 +43,11 @@ <div id="refs"> </div> </div> - <div class="padding-wrapper"> - {{ if .readme }} - <table class="wide"> - <thead> - <tr class="title-row"> - <th>{{ .readme_filename }}</th> - </tr> - </thead> - <tbody> - <tr> - <td id="readme"> - {{ .readme -}} - </td> - </tr> - </tbody> - </table> - {{ end }} + {{ if .readme }} + <div class="padding-wrapper" id="readme"> + {{ .readme -}} </div> + {{ end }} <footer> {{ template "footer" . }} </footer> |