summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/hook_slack.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-29 11:49:59 +0800
committerUnknwon <u@gogs.io>2015-08-29 11:49:59 +0800
commit55ddf225bb8aba269a407b1d13ab00a497df4f9b (patch)
treef8609999ba624a7a9cbb4b9fd00ca2bddde38959 /templates/repo/settings/hook_slack.tmpl
parent2f08e9f04880aedd82be24e191198eff700ddc08 (diff)
downloadgitea-55ddf225bb8aba269a407b1d13ab00a497df4f9b.tar.gz
gitea-55ddf225bb8aba269a407b1d13ab00a497df4f9b.zip
webhook APIs
Diffstat (limited to 'templates/repo/settings/hook_slack.tmpl')
-rw-r--r--templates/repo/settings/hook_slack.tmpl15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl
index be918ad5c1..b0ebce9280 100644
--- a/templates/repo/settings/hook_slack.tmpl
+++ b/templates/repo/settings/hook_slack.tmpl
@@ -8,7 +8,20 @@
</div>
<div class="required field {{if .Err_Channel}}error{{end}}">
<label for="channel">{{.i18n.Tr "repo.settings.slack_channel"}}</label>
- <input id="channel" name="channel" value="{{.SlackHook.Channel}}" placeholder="#general" required>
+ <input id="channel" name="channel" value="{{.SlackHook.Channel}}" placeholder="e.g. #general" required>
+ </div>
+
+ <div class="field">
+ <label for="username">{{.i18n.Tr "repo.settings.slack_username"}}</label>
+ <input id="username" name="username" value="{{.SlackHook.Username}}" placeholder="e.g. Gogs">
+ </div>
+ <div class="field">
+ <label for="icon_url">{{.i18n.Tr "repo.settings.slack_icon_url"}}</label>
+ <input id="icon_url" name="icon_url" value="{{.SlackHook.IconURL}}" placeholder="e.g. https://example.com/img/favicon.png">
+ </div>
+ <div class="field">
+ <label for="color">{{.i18n.Tr "repo.settings.slack_color"}}</label>
+ <input id="color" name="color" value="{{.SlackHook.Color}}" placeholder="e.g. #dd4b39, good, warning, danger">
</div>
{{template "repo/settings/hook_settings" .}}
</form>