summaryrefslogtreecommitdiffstats
path: root/templates/repo/flags.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/repo/flags.tmpl
parentInitial commit. (diff)
downloadforgejo-upstream.tar.xz
forgejo-upstream.zip
Adding upstream version 9.0.0.upstream/9.0.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/repo/flags.tmpl')
-rw-r--r--templates/repo/flags.tmpl33
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" .}}