|
1 | 1 | {{if eq .HookType "teamcity"}}
|
2 |
| - <p>{{.i18n.Tr "repo.settings.add_web_hook_desc" "https://jetbrains.com/teamcity" (.i18n.Tr "repo.settings.web_hook_name_teamcity") | Str2html}}</p> |
3 |
| - <form class="ui form" action="{{.BaseLink}}/teamcity/{{or .Webhook.ID "new"}}" method="post"> |
4 |
| - {{.CsrfTokenHtml}} |
5 |
| - <div class="required field {{if .Err_BotToken}}error{{end}}"> |
6 |
| - <label for="host_url">{{.i18n.Tr "repo.settings.teamcity_host_url"}}</label> |
7 |
| - <input id="host_url" name="host_url" type="url" value="{{.TeamCityHook.HostUrl}}" autofocus required> |
8 |
| - </div> |
9 |
| - <div class="required field {{if .Err_ChatID}}error{{end}}"> |
10 |
| - <label for="auth_token">{{.i18n.Tr "repo.settings.teamcity_auth_token"}}</label> |
11 |
| - <input id="auth_token" name="auth_token" type="text" value="{{.TeamCityHook.AuthToken}}" required> |
12 |
| - </div> |
13 |
| - <div class="required field {{if .Err_ChatID}}error{{end}}"> |
14 |
| - <label for="vcs_root_id">{{.i18n.Tr "repo.settings.teamcity_vcs_root_id"}}</label> |
15 |
| - <input id="vcs_root_id" name="vcs_root_id" type="text" value="{{.TeamCityHook.VcsRootId}}" required> |
16 |
| - </div> |
17 |
| - {{template "repo/settings/webhook/settings" .}} |
18 |
| - </form> |
| 2 | +<p>{{.i18n.Tr "repo.settings.add_web_hook_desc" "https://jetbrains.com/teamcity" (.i18n.Tr "repo.settings.web_hook_name_teamcity") | Str2html}}</p> |
| 3 | +<form class="ui form" action="{{.BaseLink}}/teamcity/{{or .Webhook.ID "new"}}" method="post"> |
| 4 | + {{.CsrfTokenHtml}} |
| 5 | + <div class="required field {{if .Err_BotToken}}error{{end}}"> |
| 6 | + <label for="host_url">{{.i18n.Tr "repo.settings.teamcity_host_url"}}</label> |
| 7 | + <input id="host_url" name="host_url" type="url" value="{{.TeamCityHook.HostUrl}}" autofocus required> |
| 8 | + </div> |
| 9 | + <div class="required field {{if .Err_ChatID}}error{{end}}"> |
| 10 | + <label for="auth_token">{{.i18n.Tr "repo.settings.teamcity_auth_token"}}</label> |
| 11 | + <input id="auth_token" name="auth_token" type="text" value="{{.TeamCityHook.AuthToken}}" required> |
| 12 | + </div> |
| 13 | + <div class="required field {{if .Err_ChatID}}error{{end}}"> |
| 14 | + <label for="vcs_root_id">{{.i18n.Tr "repo.settings.teamcity_vcs_root_id"}}</label> |
| 15 | + <input id="vcs_root_id" name="vcs_root_id" type="text" value="{{.TeamCityHook.VcsRootId}}" required> |
| 16 | + </div> |
| 17 | + {{template "repo/settings/webhook/settings" .}} |
| 18 | +</form> |
19 | 19 | {{end}}
|
0 commit comments