summaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
blob: b04ddbbed7386a495796cea4b64892b069f667e7 (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
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="gogs-body" class="container">
    <div id="gogs-user-profile" class="col-md-3">
        <div class="profile-avatar text-center">
            <a href="#" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change Avatar">
                <img id="gogs-user-avatar" src="http://1.gravatar.com/avatar/{{.Owner.Avatar}}?s=200" alt="user-avatar" title="username"/>
            </a>
            <span id="gogs-user-name" class="center-block" href="#">{{.Owner.Name}}</span>
        </div>
        <div class="profile-info">
            <ul class="list-group">
                {{if .Owner.Location}}
                    <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
                {{end}}
                {{if .Owner.Email}}
                    <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}">{{.Owner.Email}}</a></li>
                {{end}}
                {{if .Owner.Website}}
                    <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
                {{end}}
                <li class="list-group-item"><i class="fa fa-clock-o"></i>{{.Owner.Created}}</li>
            </ul>
        </div>
    </div>
    <div id="gogs-user-activity" class="col-md-9">
        <ul class="nav nav-tabs" id="gogs-user-act-tabs" data-init="tabs">
            <li class="active"><a href="#repo" data-toggle="tab"><i class="fa fa-gittip"></i>Repositories</a></li>
            <li><a href="#activity" data-toggle="tab"><i class="fa fa-rss"></i>Public Activity</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="repo">repo</div>
            <div class="tab-pane" id="activity">
                {{range .Feeds}}<div>
                    <i class="fa fa-{{ActionIcon .OpType}}"></i>{{ActionDesc . | str2html}} {{TimeSince .Created}}
                </div>{{end}}
            </div>
        </div>
    </div>
</div>
{{template "base/footer" .}}