diff options
Diffstat (limited to 'templates/group.tmpl')
-rw-r--r-- | templates/group.tmpl | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/templates/group.tmpl b/templates/group.tmpl deleted file mode 100644 index b15c316..0000000 --- a/templates/group.tmpl +++ /dev/null @@ -1,80 +0,0 @@ -{{/* - SPDX-License-Identifier: AGPL-3.0-only - SPDX-FileCopyrightText: Copyright (c) 2025 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"> - {{- 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">Name</th> - <td class="tdinput"> - <input id="repo-name-input" name="repo_name" type="text" /> - </td> - </tr> - <tr> - <th scope="row">Description</th> - <td class="tdinput"> - <input id="repo-desc-input" name="repo_desc" type="text" /> - </td> - </tr> - <tr> - <th scope="row">Contrib</th> - <td class="tdinput"> - <select id="repo-contrib-input" name="repo_contrib"> - <option value="public">Public</option> - <option value="ssh_pubkey">SSH public key</option> - <option value="federated">Federated service</option> - <option value="registered_user">Registered user</option> - <option value="closed">Closed</option> - </select> - </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 -}} |