mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 13:01:15 +00:00
fa73375e13
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>
14 lines
528 B
Go HTML Template
14 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" .}}
|