mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 00:15:50 +01:00
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
@(collaborators: List[String],
|
|
isGroupRepository: Boolean,
|
|
repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main("Settings", Some(repository)){
|
|
@html.header("settings", repository){
|
|
@menu("collaborators", repository){
|
|
<h3>Manage Collaborators</h3>
|
|
<ul class="collaborator">
|
|
@collaborators.map { collaboratorName =>
|
|
<li>
|
|
<a href="@url(collaboratorName)">@collaboratorName</a>
|
|
@if(!isGroupRepository){
|
|
<a href="@url(repository)/settings/collaborators/remove?name=@collaboratorName" class="remove">(remove)</a>
|
|
} else {
|
|
@if(repository.managers.contains(collaboratorName)){
|
|
(Manager)
|
|
}
|
|
}
|
|
</li>
|
|
}
|
|
</ul>
|
|
@if(!isGroupRepository){
|
|
<form method="POST" action="@url(repository)/settings/collaborators/add" validate="true" autocomplete="off">
|
|
<div>
|
|
<span class="error" id="error-userName"></span>
|
|
</div>
|
|
@helper.html.account("userName", 300)
|
|
<input type="submit" class="btn" value="Add"/>
|
|
</form>
|
|
}
|
|
}
|
|
}
|
|
}
|