aboutsummaryrefslogtreecommitdiff
path: root/templates/_group_view.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 09:33:11 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 09:34:06 +0800
commitc9b4eee4c589b8b40c02d0c96f887ec991580a24 (patch)
tree0ab3f2a22e9c4ca430573559d5712a4a7a6903a3 /templates/_group_view.tmpl
parentMove the Go stuff to ./forged/ (diff)
downloadforge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.gz
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.zst
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.zip
Restructure static/templates into forged
Diffstat (limited to 'templates/_group_view.tmpl')
-rw-r--r--templates/_group_view.tmpl56
1 files changed, 0 insertions, 56 deletions
diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl
deleted file mode 100644
index 92b6639..0000000
--- a/templates/_group_view.tmpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{/*
- SPDX-License-Identifier: AGPL-3.0-only
- SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
-*/}}
-{{- define "group_view" -}}
-{{- if .subgroups -}}
- <table class="wide">
- <thead>
- <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 -}}
- <tr>
- <td>
- <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a>
- </td>
- <td>
- {{- .Description -}}
- </td>
- </tr>
- {{- end -}}
- </tbody>
- </table>
-{{- end -}}
-{{- if .repos -}}
-<table class="wide">
- <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>
- {{- range .repos -}}
- <tr>
- <td>
- <a href="-/repos/{{- .Name | path_escape -}}/">{{- .Name -}}</a>
- </td>
- <td>
- {{- .Description -}}
- </td>
- </tr>
- {{- end -}}
- </tbody>
-</table>
-{{- end -}}
-{{- end -}}