Browse Source

templates/repo/webhook: move to its own directory

pull/4301/head
Unknwon 8 years ago
parent
commit
4e64e71e28
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 4
      routers/repo/webhook.go
  2. 8
      templates/org/settings/webhook_new.tmpl
  3. 2
      templates/org/settings/webhooks.tmpl
  4. 2
      templates/repo/settings/webhook/base.tmpl
  5. 0
      templates/repo/settings/webhook/delete_modal.tmpl
  6. 2
      templates/repo/settings/webhook/discord.tmpl
  7. 2
      templates/repo/settings/webhook/gogs.tmpl
  8. 0
      templates/repo/settings/webhook/history.tmpl
  9. 2
      templates/repo/settings/webhook/list.tmpl
  10. 8
      templates/repo/settings/webhook/new.tmpl
  11. 2
      templates/repo/settings/webhook/settings.tmpl
  12. 2
      templates/repo/settings/webhook/slack.tmpl

4
routers/repo/webhook.go

@ -23,8 +23,8 @@ import (
)
const (
WEBHOOKS base.TplName = "repo/settings/webhooks"
WEBHOOK_NEW base.TplName = "repo/settings/webhook_new"
WEBHOOKS base.TplName = "repo/settings/webhook/base"
WEBHOOK_NEW base.TplName = "repo/settings/webhook/new"
ORG_WEBHOOK_NEW base.TplName = "org/settings/webhook_new"
)

8
templates/org/settings/webhook_new.tmpl

@ -17,12 +17,12 @@
</div>
</h4>
<div class="ui attached segment">
{{template "repo/settings/webhook_gogs" .}}
{{template "repo/settings/webhook_slack" .}}
{{template "repo/settings/webhook_discord" .}}
{{template "repo/settings/webhook/gogs" .}}
{{template "repo/settings/webhook/slack" .}}
{{template "repo/settings/webhook/discord" .}}
</div>
{{template "repo/settings/webhook_history" .}}
{{template "repo/settings/webhook/history" .}}
</div>
</div>
</div>

2
templates/org/settings/webhooks.tmpl

@ -4,7 +4,7 @@
<div class="ui container">
<div class="ui grid">
{{template "org/settings/navbar" .}}
{{template "repo/settings/webhook_list" .}}
{{template "repo/settings/webhook/list" .}}
</div>
</div>
</div>

2
templates/repo/settings/webhooks.tmpl → templates/repo/settings/webhook/base.tmpl

@ -4,7 +4,7 @@
<div class="ui container">
<div class="ui grid">
{{template "repo/settings/navbar" .}}
{{template "repo/settings/webhook_list" .}}
{{template "repo/settings/webhook/list" .}}
</div>
</div>
</div>

0
templates/repo/settings/webhook_delete_modal.tmpl → templates/repo/settings/webhook/delete_modal.tmpl

2
templates/repo/settings/webhook_discord.tmpl → templates/repo/settings/webhook/discord.tmpl

@ -19,6 +19,6 @@
<label for="color">{{.i18n.Tr "repo.settings.slack_color"}}</label>
<input id="color" name="color" value="{{.SlackHook.Color}}" placeholder="e.g. #dd4b39">
</div>
{{template "repo/settings/webhook_settings" .}}
{{template "repo/settings/webhook/settings" .}}
</form>
{{end}}

2
templates/repo/settings/webhook_gogs.tmpl → templates/repo/settings/webhook/gogs.tmpl

@ -24,6 +24,6 @@
<input id="secret" name="secret" type="password" value="{{.Webhook.Secret}}" autocomplete="off">
<p class="text grey desc">{{.i18n.Tr "repo.settings.secret_desc" | Safe}}</p>
</div>
{{template "repo/settings/webhook_settings" .}}
{{template "repo/settings/webhook/settings" .}}
</form>
{{end}}

0
templates/repo/settings/webhook_history.tmpl → templates/repo/settings/webhook/history.tmpl

2
templates/repo/settings/webhook_list.tmpl → templates/repo/settings/webhook/list.tmpl

@ -52,4 +52,4 @@
</div>
</div>
{{template "repo/settings/webhook_delete_modal" .}}
{{template "repo/settings/webhook/delete_modal" .}}

8
templates/repo/settings/webhook_new.tmpl → templates/repo/settings/webhook/new.tmpl

@ -17,12 +17,12 @@
</div>
</h4>
<div class="ui attached segment">
{{template "repo/settings/webhook_gogs" .}}
{{template "repo/settings/webhook_slack" .}}
{{template "repo/settings/webhook_discord" .}}
{{template "repo/settings/webhook/gogs" .}}
{{template "repo/settings/webhook/slack" .}}
{{template "repo/settings/webhook/discord" .}}
</div>
{{template "repo/settings/webhook_history" .}}
{{template "repo/settings/webhook/history" .}}
</div>
</div>
</div>

2
templates/repo/settings/webhook_settings.tmpl → templates/repo/settings/webhook/settings.tmpl

@ -123,4 +123,4 @@
{{end}}
</div>
{{template "repo/settings/webhook_delete_modal" .}}
{{template "repo/settings/webhook/delete_modal" .}}

2
templates/repo/settings/webhook_slack.tmpl → templates/repo/settings/webhook/slack.tmpl

@ -23,6 +23,6 @@
<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/webhook_settings" .}}
{{template "repo/settings/webhook/settings" .}}
</form>
{{end}}
Loading…
Cancel
Save