summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-06 11:50:31 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-06 11:50:31 -0400
commite573855a4f040abd4aa6a2afa9ce610a1ec2670f (patch)
tree7ead7dafd3c228305e83a19dec0bca5b60d92217 /templates
parent94bccbb148a4ed897eb8332fc746aa75486c5c4d (diff)
downloadgitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.tar.gz
gitea-e573855a4f040abd4aa6a2afa9ce610a1ec2670f.zip
Fix #98, support web hook
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/hooks.tmpl2
-rw-r--r--templates/repo/hooks_edit.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/hooks.tmpl b/templates/repo/hooks.tmpl
index e1b36a67e8..85132e4b81 100644
--- a/templates/repo/hooks.tmpl
+++ b/templates/repo/hooks.tmpl
@@ -16,7 +16,7 @@
{{range .Webhooks}}
<li>
{{if .IsActive}}<span class="pull-left status text-success"><i class="fa fa-check"></i></span>{{else}}<span class="pull-left status"><i class="fa fa-times"></i></span>{{end}}
- <a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Payload}}</a>
+ <a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Url}}</a>
<a href="{{$.RepoLink}}/settings/hooks?remove={{.Id}}" class="remove-hook pull-right"><i class="fa fa-times"></i></a>
<a href="{{$.RepoLink}}/settings/hooks/{{.Id}}" class="edit-hook pull-right"><i class="fa fa-pencil"></i></a>
</li>
diff --git a/templates/repo/hooks_edit.tmpl b/templates/repo/hooks_edit.tmpl
index f98ccef6f3..c3fe217e37 100644
--- a/templates/repo/hooks_edit.tmpl
+++ b/templates/repo/hooks_edit.tmpl
@@ -19,7 +19,7 @@
<hr/>
<div class="form-group">
<label for="payload-url">Payload URL</label>
- <input id="payload-url" name="url" class="form-control" type="url" required="required" value="{{.Webhook.Payload}}" />
+ <input id="payload-url" name="url" class="form-control" type="url" required="required" value="{{.Webhook.Url}}" />
</div>
<div class="form-group">