summaryrefslogtreecommitdiffstats
path: root/templates/repo/flags.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-11 10:27:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-11 10:27:00 +0000
commit65aa53fc52ff15efe54df4147564828d535837f8 (patch)
tree31c51dad04fdcca80e6d3043c8bd49d2f1a51f83 /templates/repo/flags.tmpl
parentInitial commit. (diff)
downloadforgejo-65aa53fc52ff15efe54df4147564828d535837f8.tar.xz
forgejo-65aa53fc52ff15efe54df4147564828d535837f8.zip
Adding upstream version 8.0.3.HEADupstream/8.0.3upstreamdebian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.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 00000000..620357bd
--- /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" .}}