0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/templates/repo/collaboration.tmpl

47 lines
2.1 KiB
Cheetah
Raw Normal View History

2014-05-01 04:44:22 -05:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
2014-05-01 10:32:12 -05:00
{{template "repo/setting_nav" .}}
2014-05-01 04:44:22 -05:00
<div id="repo-setting-container" class="col-md-10">
{{template "base/alert" .}}
<div class="panel panel-default">
<div class="panel-heading">
Collaborators
</div>
2014-05-05 15:21:43 -05:00
2014-05-01 04:44:22 -05:00
<div class="panel-body">
<ul id="repo-collab-list" class="list-unstyled">
2014-05-01 10:32:12 -05:00
{{range .Collaborators}}
2014-05-01 04:44:22 -05:00
<li class="collab">
2014-05-01 10:32:12 -05:00
{{if not (eq .LowerName $.Owner.LowerName)}}<a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="remove-collab pull-right"><i class="fa fa-times"></i></a>{{end}}
<a class="member" href="/user/{{.Name}}">
<img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}">
<strong class="access-member-fullname">{{.FullName}}</strong><br/>
{{.Name}}
2014-05-01 04:44:22 -05:00
</a>
</li>
2014-05-01 10:32:12 -05:00
{{end}}
2014-05-01 04:44:22 -05:00
</ul>
</div>
2014-05-05 15:21:43 -05:00
2014-05-01 04:44:22 -05:00
<div class="panel-footer">
2014-05-01 10:32:12 -05:00
<form action="{{.RepoLink}}/settings/collaboration" method="post" class="form-horizontal" id="repo-collab-form">
2014-05-01 04:44:22 -05:00
{{.CsrfTokenHtml}}
<div class="form-group" style="margin-bottom: 0">
<div class="col-md-4">
2014-05-01 10:32:12 -05:00
<input type="text" name="collaborator" class="form-control dropdown-toggle" id="repo-collaborator" autocomplete="off" required="required" data-toggle="dropdown"/>
2014-05-01 04:44:22 -05:00
<div class="dropdown-menu">
<ul class="list-unstyled"></ul>
</div>
</div>
<button class="col-md-2 btn btn-primary">Add collaborator</button>
</div>
</form>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}