summaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
blob: 1b51a871f9e5929ffe02c52c5c143a8ba1673a4a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body" class="container" data-page="user">
    <div id="user-profile" class="col-md-3">
        <div class="profile-avatar text-center">
            <a href="http://gravatar.com/emails/" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change your avatar at gravatar.com">
                <img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
            </a>
            {{if .Owner.FullName}}<span id="user-full-name" class="center-block">{{.Owner.FullName}}</span>{{end}}
            <span id="user-name" class="center-block">{{.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}}" rel="nofollow">{{.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>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li>
                <!-- <hr> -->
                <!-- <li class="list-group-item" style="padding-top: 5px;">
                    <div class="profile-rel">
                        <div class="col-md-6 followers">
                            <strong>123</strong>
                            <p>followers</p>
                        </div>
                        <div class="col-md-6 following">
                            <strong>123</strong>
                            <p>following</p>
                        </div>
                    </div>
                </li>
                <hr> -->
            </ul>
        </div>
    </div>
    <div id="user-activity" class="col-md-9">
        <ul class="nav nav-tabs" id="user-act-tabs">
            <li{{if not .TabName}} class="active"{{end}}><a href="{{.Owner.HomeLink}}"><i class="fa fa-gittip"></i>Repositories</a></li>
            <li{{if eq .TabName "activity"}} class="active"{{end}}><a href="{{.Owner.HomeLink}}?tab=activity"><i class="fa fa-rss"></i>Public Activity</a></li>
        </ul>
        <div class="tab-content">
            {{if eq .TabName "activity"}}
            <div class="tab-pane active">
                <ul class="list-unstyled activity-list">
                {{range .Feeds}}
                    <li>
                        <i class="icon fa fa-{{ActionIcon .GetOpType}}"></i>
                        <div class="info"><span class="meta">{{TimeSince .Created $.Lang}}</span><br>{{ActionDesc . | str2html}}</div>
                        <span class="clearfix"></span>
                    </li>
                {{else}}
                    <li>No public activity yet.</li>
                {{end}}
                </ul>
            </div>
            {{else}}
            <div class="tab-pane active">
                <ul class="list-unstyled repo-list">
                {{range .Repos}}
                    <li>
                        <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
                        <h4>
                            <a href="{{AppRootSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}{{if .IsPrivate}} <span class="label label-default">Private</span>{{end}}</a>
                        </h4>
                        <p class="desc">{{.Description}}</p>
                        <div class="info">Last updated {{TimeSince .Updated $.Lang}}</div>
                    </li>
                {{end}}
                </ul>
            </div>
            {{end}}
        </div>
    </div>
</div>
{{template "base/footer" .}}