aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/group.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-08-12 11:01:07 +0800
committerRunxi Yu <me@runxiyu.org>2025-09-26 17:25:37 +0800
commite238ccb06b05e88ec323ca95ad4600bd79743372 (patch)
tree46f82d4d0f4ec43e94dcde5677de1ba857862638 /forged/templates/group.tmpl
parentRemove forge-specific functions from misc (diff)
downloadforge-e238ccb06b05e88ec323ca95ad4600bd79743372.tar.gz
forge-e238ccb06b05e88ec323ca95ad4600bd79743372.tar.zst
forge-e238ccb06b05e88ec323ca95ad4600bd79743372.zip
Refactor
Diffstat (limited to 'forged/templates/group.tmpl')
-rw-r--r--forged/templates/group.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/forged/templates/group.tmpl b/forged/templates/group.tmpl
index 3338f9b..1f9609e 100644
--- a/forged/templates/group.tmpl
+++ b/forged/templates/group.tmpl
@@ -3,23 +3,23 @@
SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
*/}}
{{- define "group" -}}
-{{- $group_path := .group_path -}}
+{{- $group_path := .BaseData.GroupPath -}}
<!DOCTYPE html>
<html lang="en">
<head>
{{- template "head_common" . -}}
- <title>{{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} &ndash; {{ .global.forge_title -}}</title>
+ <title>{{- range $i, $s := $group_path -}}{{- $s -}}{{- if ne $i (len $group_path) -}}/{{- end -}}{{- end }} &ndash; {{ .BaseData.Global.ForgeTitle -}}</title>
</head>
<body class="group">
{{- template "header" . -}}
<main>
<div class="padding-wrapper">
- {{- if .description -}}
- <p>{{- .description -}}</p>
+ {{- if .Description -}}
+ <p>{{- .Description -}}</p>
{{- end -}}
{{- template "group_view" . -}}
</div>
- {{- if .direct_access -}}
+ {{- if .DirectAccess -}}
<div class="padding-wrapper">
<form method="POST" enctype="application/x-www-form-urlencoded">
<table>
@@ -47,7 +47,7 @@
<th scope="row">Contrib</th>
<td class="tdinput">
<select id="repo-contrib-input" name="repo_contrib">
- <option value="public">Public</option>
+ <option value="open">Public</option>
<option value="ssh_pubkey">SSH public key</option>
<option value="federated">Federated service</option>
<option value="registered_user">Registered user</option>