0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 13:42:48 +01:00
gitea/templates/repo/hooks.tmpl

33 lines
1.7 KiB
Cheetah
Raw Normal View History

2014-05-02 16:07:34 +02:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
{{template "repo/setting_nav" .}}
<div id="repo-setting-container" class="col-md-10">
{{template "base/alert" .}}
<div class="panel panel-default">
<div class="panel-heading">
Webhooks
</div>
<div class="panel-body">
<p>Webhooks allow external services to be notified when certain events happen on GitHub. When the specified events happen, we'll send a POST request to each of the URLs you provide. Learn more in our Webhooks Guide.<br/>&nbsp;</p>
<ul id="repo-hooks-list" class="list-unstyled">
2014-05-06 02:52:25 +02:00
{{range .Webhooks}}
2014-05-02 16:07:34 +02:00
<li>
2014-05-06 03:36:08 +02:00
{{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}}
2014-05-06 17:50:31 +02:00
<a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Url}}</a>
2014-05-06 02:52:25 +02:00
<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>
2014-05-02 16:07:34 +02:00
</li>
2014-05-06 02:52:25 +02:00
{{end}}
2014-05-02 16:07:34 +02:00
</ul>
</div>
<div class="panel-footer">
2014-05-06 02:52:25 +02:00
<a href="{{.RepoLink}}/settings/hooks/add"><button class="btn btn-primary">Add Webhook</button></a>
2014-05-02 16:07:34 +02:00
</div>
</div>
</div>
</div>
{{template "base/footer" .}}