Lindenii Project Forge
Commit info | |
---|---|
ID | d9bd153b75997815fe1efc5f3d0aabfe99a23e00 |
Author | Runxi Yu<me@runxiyu.org> |
Author date | Thu, 06 Mar 2025 20:57:57 +0800 |
Committer | Runxi Yu<me@runxiyu.org> |
Committer date | Thu, 06 Mar 2025 20:57:57 +0800 |
Actions | Get patch |
group/index: Add create repo form
{{/* SPDX-License-Identifier: AGPL-3.0-only SPDX-FileContributor: Runxi Yu <https://runxiyu.org> */}} {{- define "group" -}} {{ $group_path := .group_path }} <!DOCTYPE html> <html lang="en"> <head> {{ template "head_common" . }} <title>{{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }} – {{ .global.forge_title }}</title> </head> <body class="group"> {{ template "header" . }} <div class="padding-wrapper"> <p>{{ range $i, $s := .group_path }}{{ $s }}{{ if ne $i (len $group_path) }} / {{ end }}{{ end }} {{ if .description }} <p>{{ .description }}</p> {{ end }}
{{ template "group_view" . }} </div>
{{ if .direct_access }} <div class="padding-wrapper"> <form method="POST" enctype="application/x-www-form-urlencoded"> <table> <thead> <tr> <th class="title-row" colspan="2"> Create repo </th> </tr> </thead> <tbody> <tr> <th scope="row">Repo name</th> <td class="tdinput"> <input id="repo-name-input" name="repo_name" type="text" /> </td> </tr> </tbody> <tfoot> <tr> <td class="th-like" colspan="2"> <div class="flex-justify"> <div class="left"> </div> <div class="right"> <input class="btn-primary" type="submit" value="Create" /> </div> </div> </td> </tr> </tfoot> </table> </form> </div> {{ end }}
<footer> {{ template "footer" . }} </footer> </body> </html> {{- end -}}