mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 16:35:52 +01:00
(refs #74)Add the web hook configuration page.
This commit is contained in:
16
src/main/twirl/settings/hooks.scala.html
Normal file
16
src/main/twirl/settings/hooks.scala.html
Normal file
@@ -0,0 +1,16 @@
|
||||
@(repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
||||
@import context._
|
||||
@import view.helpers._
|
||||
@html.main("Settings", Some(repository)){
|
||||
@html.header("settings", repository)
|
||||
@menu("hooks", repository){
|
||||
<h3>WebHook URLs</h3>
|
||||
<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"/>
|
||||
</form>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user