diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-06 15:17:57 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-06 20:07:48 +0800 |
commit | 8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0 (patch) | |
tree | a2f33fccac42b554b1176741d00c1d0cd2d0dceb /templates/index.tmpl | |
parent | sql: Add purge and test scripts (diff) | |
download | forge-8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0.tar.gz forge-8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0.tar.zst forge-8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0.zip |
*: Support subgroups via SQL recursion
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r-- | templates/index.tmpl | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl index c3b8bef..2e039a9 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -12,28 +12,25 @@ <body class="index"> {{ template "header" . }} <div class="padding-wrapper"> - <table class="wide"> - <thead> + <table class="wide"> + <thead> + <tr> + <th colspan="2" class="title-row">Groups</th> + </tr> + </thead> + <tbody> + {{- range .groups }} <tr> - <th colspan="2" class="title-row"> - Groups - </th> + <td> + <a href="{{ .Name }}/">{{ .Name }}</a> + </td> + <td> + {{ .Description }} + </td> </tr> - </thead> - <tbody> - {{- range .groups }} - <tr> - <td> - <a href="{{ .Name }}/:/repos/">{{ .Name }}</a> - </td> - <td> - {{ .Description }} - </td> - </tr> - {{- end }} - </tbody> - </table> - </div> + {{- end }} + </tbody> + </table> <div class="padding-wrapper"> <table class="wide"> <thead> |