diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-18 20:33:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 23:57:56 +0100 |
commit | e68b9d00a6e05b3a941f63ffb696f91e554ac5ec (patch) | |
tree | 97775d6c13b0f416af55314eb6a89ef792474615 /templates/repo/flags.tmpl | |
parent | Initial commit. (diff) | |
download | forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.tar.xz forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.zip |
Adding upstream version 9.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rw-r--r-- | templates/repo/flags.tmpl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/repo/flags.tmpl b/templates/repo/flags.tmpl new file mode 100644 index 0000000..620357b --- /dev/null +++ b/templates/repo/flags.tmpl @@ -0,0 +1,33 @@ +{{template "base/head" .}} +<div role="main" aria-label="{{.Title}}" class="page-content repository"> + {{template "repo/header" .}} + <div class="ui container"> + {{template "base/alert" .}} + <div class="user-main-content twelve wide column"> + <h4 class="ui top attached header"> + {{ctx.Locale.Tr "repo.admin.manage_flags"}} + </h4> + <div class="ui attached segment"> + <form class="ui form" action="{{.Link}}" method="post"> + {{.CsrfTokenHtml}} + <strong>{{ctx.Locale.Tr "repo.admin.enabled_flags"}}</strong> + <div class="ui segment tw-pl-4"> + {{range $flag, $checked := .Flags}} + <div class="field"> + <div class="ui checkbox{{if $checked}} checked{{end}}"> + <input name="flags" type="checkbox" value="{{$flag}}" {{if $checked}}checked{{end}}> + <label>{{$flag}}</label> + </div> + </div> + {{end}} + </div> + + <div class="field"> + <button class="ui primary button">{{ctx.Locale.Tr "repo.admin.update_flags"}}</button> + </div> + </form> + </div> + </div> + </div> +</div> +{{template "base/footer" .}} |