mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 19:45:57 +01:00
Add the manage collaborators page.
This commit is contained in:
@@ -17,4 +17,11 @@ class SettingsController extends ControllerBase {
|
||||
settings.html.options(JGitUtil.getRepositoryInfo(owner, repository, servletContext))
|
||||
}
|
||||
|
||||
get("/:owner/:repository/settings/collaborators") {
|
||||
val owner = params("owner")
|
||||
val repository = params("repository")
|
||||
|
||||
settings.html.collaborators(JGitUtil.getRepositoryInfo(owner, repository, servletContext))
|
||||
}
|
||||
|
||||
}
|
||||
11
src/main/twirl/settings/collaborators.scala.html
Normal file
11
src/main/twirl/settings/collaborators.scala.html
Normal file
@@ -0,0 +1,11 @@
|
||||
@(repository: app.RepositoryInfo)(implicit context: app.Context)
|
||||
@import context._
|
||||
@html.main("Settings"){
|
||||
@html.header("settings", repository)
|
||||
@menu("collaborators"){
|
||||
<h3>Manage Collaborators</h3>
|
||||
|
||||
<input type="text" style="width: 300px; margin-bottom: 0px;"/>
|
||||
<input type="submit" class="btn" value="Add"/>
|
||||
}
|
||||
}
|
||||
13
src/main/twirl/settings/menu.scala.html
Normal file
13
src/main/twirl/settings/menu.scala.html
Normal file
@@ -0,0 +1,13 @@
|
||||
@(active: String)(body: Html)(implicit context: app.Context)
|
||||
@import context._
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<li class="active"><a href="@path/settings/options">Options</a></li>
|
||||
<li><a href="@path/settings/collaborators">Collaborators</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
@body
|
||||
</div>
|
||||
</div>
|
||||
@@ -2,14 +2,7 @@
|
||||
@import context._
|
||||
@html.main("Settings"){
|
||||
@html.header("settings", repository)
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<li class="active"><a href="@path/settings/options">Options</a></li>
|
||||
<li><a href="@path/settings/collaborators">Collaborators</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
@menu("options"){
|
||||
<form id="form" method="post" action="@path/new" validate="true">
|
||||
<div class="box">
|
||||
<div class="box-header">Settings</div>
|
||||
@@ -70,6 +63,5 @@
|
||||
-->
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user