1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-29 13:59:15 -05:00
forgejo/templates/repo/settings/units.tmpl
Gergely Nagy fa73375e13
Split out repository unit settings
This splits out the repository unit settings (formerly "Advanced
settings" under the repository settings page) into their own, separate
page.

The primary reason for this is that the settings page became long and
complicated, with a structure that not always made sense. A secondary
reason is that toggling units on and off should not necessarily be an
"advanced" setting. We want to make doing that easier, and having the
units on their own page helps with that.

This is basically a refactor, there is no new functionality introduced,
just an extra pair of routes for the new page, and the supporting code.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-02-13 22:42:09 +01:00

13 lines
528 B
Go HTML Template

{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings options")}}
<div class="user-main-content twelve wide column">
<form class="ui form" method="post" action="{{.RepoLink}}/settings/units">
{{.CsrfTokenHtml}}
{{template "repo/settings/units/overview" .}}
{{template "repo/settings/units/issues" .}}
{{if not .IsMirror}}
{{template "repo/settings/units/pulls" .}}
{{end}}
{{template "repo/settings/units/wiki" .}}
</form>
</div>
{{template "repo/settings/layout_footer" .}}