code.gitea.io/gitea@v1.22.3/templates/admin/hook_new.tmpl (about)

     1  {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin settings new webhook")}}
     2  	<div class="admin-setting-content">
     3  		{{$CustomHeaderTitle := ctx.Locale.Tr "admin.defaulthooks.update_webhook"}}
     4  		{{if .PageIsAdminDefaultHooksNew}}
     5  			{{$CustomHeaderTitle = ctx.Locale.Tr "admin.defaulthooks.add_webhook"}}
     6  		{{else if .PageIsAdminSystemHooksNew}}
     7  			{{$CustomHeaderTitle = ctx.Locale.Tr "admin.systemhooks.add_webhook"}}
     8  		{{else if .Webhook.IsSystemWebhook}}
     9  			{{$CustomHeaderTitle = ctx.Locale.Tr "admin.systemhooks.update_webhook"}}
    10  		{{end}}
    11  		{{template "webhook/new" (dict "ctxData" . "CustomHeaderTitle" $CustomHeaderTitle)}}
    12  	</div>
    13  {{template "admin/layout_footer" .}}