summaryrefslogtreecommitdiffstats
path: root/templates/repo/collaboration.tmpl
blob: aea0aa4147f24a1978e84ae4e0e3feb15781bb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
    <div id="user-setting-nav" class="col-md-2">
        <ul class="list-group">
            <li class="list-group-item"><a href="/{{.Owner.Name}}/{{.Repository.Name}}/settings">Options</a></li>
            <li class="list-group-item active"><a href="/{{.Owner.Name}}/{{.Repository.Name}}/collaboration">Collaborators</a></li>
            <!--<li class="list-group-item"><a href="#">Notifications</a></li>-->
        </ul>
    </div>

    <div id="repo-setting-container" class="col-md-10">
        {{template "base/alert" .}}
        <div class="panel panel-default">
            <div class="panel-heading">
                Collaborators
            </div>
            <div class="panel-body">
                <ul id="repo-collab-list" class="list-unstyled">
                    <li>No Collaborators</li>
                    <li class="collab">
                        <a href="/{{.Owner.Name}}/{{.Repository.Name}}/remove_member?name=" class="remove-collab pull-right"><i class="fa fa-times"></i></a>
                        <a class="member" href="#">
                            <img alt="无闻" class="pull-left avatar" src="https://avatars2.githubusercontent.com/u/2946214?s=140">
                                <strong class="access-member-fullname">无闻</strong><br/>
                                Unknwon
                        </a>
                    </li>
                </ul>
            </div>
            <div class="panel-footer">
                <form action="/{{.Owner.Name}}/{{.Repository.Name}}/collaboration" method="post" class="form-horizontal" id="repo-collab-form">
                    {{.CsrfTokenHtml}}
                    <div class="form-group" style="margin-bottom: 0">
                        <div class="col-md-4">
                            <input type="text" name="collaborator" class="form-control dropdown-toggle" id="repo-collaborator" required="required" data-toggle="dropdown"/>
                            <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" .}}