aboutsummaryrefslogtreecommitdiff
path: root/templates/_group_view.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-07 21:18:28 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-07 21:18:51 +0800
commit5699c497a45e08e9e502974e8055d1291dde29dd (patch)
tree5f8c6555142ead9e1359f9e778e4f7375dd60069 /templates/_group_view.tmpl
parenthttp/templates: Minify templates (diff)
downloadforge-5699c497a45e08e9e502974e8055d1291dde29dd.tar.gz
forge-5699c497a45e08e9e502974e8055d1291dde29dd.tar.zst
forge-5699c497a45e08e9e502974e8055d1291dde29dd.zip
http/templates: Reduce whitespace
Diffstat (limited to '')
-rw-r--r--templates/_group_view.tmpl24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/_group_view.tmpl b/templates/_group_view.tmpl
index b914cf9..dbfbe07 100644
--- a/templates/_group_view.tmpl
+++ b/templates/_group_view.tmpl
@@ -3,7 +3,7 @@
SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
*/}}
{{- define "group_view" -}}
-{{ if .subgroups }}
+{{- if .subgroups -}}
<table class="wide">
<thead>
<tr>
@@ -15,20 +15,20 @@
</tr>
</thead>
<tbody>
- {{- range .subgroups }}
+ {{- range .subgroups -}}
<tr>
<td>
- <a href="{{ .Name | path_escape }}/">{{ .Name }}</a>
+ <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a>
</td>
<td>
- {{ .Description }}
+ {{- .Description -}}
</td>
</tr>
- {{- end }}
+ {{- end -}}
</tbody>
</table>
-{{ end }}
-{{ if .repos }}
+{{- end -}}
+{{- if .repos -}}
<table class="wide">
<thead>
<tr>
@@ -40,17 +40,17 @@
</tr>
</thead>
<tbody>
- {{- range .repos }}
+ {{- range .repos -}}
<tr>
<td>
- <a href=":/repos/{{ .Name | path_escape }}/">{{ .Name }}</a>
+ <a href=":/repos/{{- .Name | path_escape -}}/">{{- .Name -}}</a>
</td>
<td>
- {{ .Description }}
+ {{- .Description -}}
</td>
</tr>
- {{- end }}
+ {{- end -}}
</tbody>
</table>
-{{ end }}
+{{- end -}}
{{- end -}}