diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-01 00:33:40 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-01 00:33:40 +0800 |
commit | c5ce33047e77b03b8d6e289d2b250e15c65ae3d2 (patch) | |
tree | 068ff0edefa6a5e26def3a25e644ca3e29b54e64 /templates/repo/settings/hook_slack.tmpl | |
parent | bf5595f9a0ee41a30ab04348e02d87ee9f53969a (diff) | |
download | gitea-c5ce33047e77b03b8d6e289d2b250e15c65ae3d2.tar.gz gitea-c5ce33047e77b03b8d6e289d2b250e15c65ae3d2.zip |
Mirror fix and hide missing pages for 0.5 release
Diffstat (limited to 'templates/repo/settings/hook_slack.tmpl')
-rw-r--r-- | templates/repo/settings/hook_slack.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo/settings/hook_slack.tmpl b/templates/repo/settings/hook_slack.tmpl new file mode 100644 index 0000000000..50d28e2f5e --- /dev/null +++ b/templates/repo/settings/hook_slack.tmpl @@ -0,0 +1,20 @@ +<div id="slack" class="{{if or .PageIsSettingsHooksNew (and .PageIsSettingsHooksEdit (not (eq .HookType "Slack")))}}hidden{{end}}"> + <form class="form form-align panel-body repo-setting-form" id="repo-setting-form-slack" action="{{.RepoLink}}/settings/hooks/slack/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.Id}}{{end}}" method="post"> + {{.CsrfTokenHtml}} + <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 /> + </div> + <div class="field"> + <label class="req" for="channel">{{.i18n.Tr "repo.settings.slack_channel"}}</label> + <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="channel" name="channel" type="text" value="{{.SlackHook.Channel}}" placeholder="#general" required /> + </div> + {{template "repo/settings/hook_settings" .}} + </form> +</div> |