mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 16:05:49 +01:00
25 lines
983 B
HTML
25 lines
983 B
HTML
@(webHooks: List[model.WebHook], repository: service.RepositoryService.RepositoryInfo, info: Option[Any])(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main("Settings", Some(repository)){
|
|
@html.menu("settings", repository){
|
|
@menu("hooks", repository){
|
|
@helper.html.information(info)
|
|
<h3>WebHook URLs</h3>
|
|
<ul>
|
|
@webHooks.map { webHook =>
|
|
<li>@webHook.url <a href="@url(repository)/settings/hooks/delete?url=@urlEncode(webHook.url)" class="remove">(remove)</a></li>
|
|
}
|
|
</ul>
|
|
<form method="POST" action="@url(repository)/settings/hooks/add" validate="true">
|
|
<div>
|
|
<span class="error" id="error-url"></span>
|
|
</div>
|
|
<input type="text" name="url" id="url" style="width: 300px; margin-bottom: 0px;"/>
|
|
<input type="submit" class="btn" value="Add"/>
|
|
<a href="@url(repository)/settings/hooks/test" class="btn">Test Hook</a>
|
|
</form>
|
|
}
|
|
}
|
|
}
|