diff options
author | Christopher Brickley <brickley@gmail.com> | 2014-10-24 08:56:12 -0400 |
---|---|---|
committer | Christopher Brickley <brickley@gmail.com> | 2014-10-24 08:56:12 -0400 |
commit | 3794111460e8f69a69bfaacade2978fe89644270 (patch) | |
tree | e6361647a56f6d8df3b9d6b019d7627fb5eb7ad8 /templates | |
parent | d7ea49b9f52a065dc34933ecc056e3b6b6b0fad9 (diff) | |
download | gitea-3794111460e8f69a69bfaacade2978fe89644270.tar.gz gitea-3794111460e8f69a69bfaacade2978fe89644270.zip |
update slack hook to use new format
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/hook_slack.tmpl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl index ed7a42e6f7..08d86180e5 100644 --- a/templates/repo/settings/hook_slack.tmpl +++ b/templates/repo/settings/hook_slack.tmpl @@ -4,12 +4,8 @@ <input type="hidden" name="hook_type" value="slack"> <div class="text-center panel-desc">{{.i18n.Tr "repo.settings.add_slack_hook_desc" | Str2html}}</div> <div class="field"> - <label class="req" for="domain">{{.i18n.Tr "repo.settings.slack_domain"}}</label> - <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="domain" name="domain" type="text" value="{{.SlackHook.Domain}}" placeholde="myslack" required /> - </div> - <div class="field"> - <label class="req" for="token">{{.i18n.Tr "repo.settings.slack_token"}}</label> - <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="token" name="token" type="text" value="{{.SlackHook.Token}}" autocomplete="off" required /> + <label class="req" for="payload-url">{{.i18n.Tr "repo.settings.payload_url"}}</label> + <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="payload-url" name="payload_url" type="url" value="{{.Webhook.Url}}" required /> </div> <div class="field"> <label class="req" for="channel">{{.i18n.Tr "repo.settings.slack_channel"}}</label> |