2014-03-02 19:17:55 +05:30
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-25 16:14:37 +05:30
|
|
|
<div id="body" class="container" data-page="user">
|
|
|
|
<div id="user-profile" class="col-md-3">
|
2014-03-02 19:17:55 +05:30
|
|
|
<div class="profile-avatar text-center">
|
2014-03-20 08:50:55 +05:30
|
|
|
<a href="http://gravatar.com/emails/" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change your avatar at gravatar.com">
|
2014-03-25 16:14:37 +05:30
|
|
|
<img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
|
2014-03-02 19:17:55 +05:30
|
|
|
</a>
|
2014-05-01 17:56:41 +05:30
|
|
|
{{if .Owner.FullName}}<span id="user-name" class="center-block">{{.Owner.FullName}}</span>{{end}}
|
2014-03-25 16:14:37 +05:30
|
|
|
<span id="user-name" class="center-block">{{.Owner.Name}}</span>
|
2014-03-02 19:17:55 +05:30
|
|
|
</div>
|
|
|
|
<div class="profile-info">
|
|
|
|
<ul class="list-group">
|
2014-04-13 06:05:35 +05:30
|
|
|
{{if .Owner.Location}}
|
2014-04-27 12:35:13 +05:30
|
|
|
<li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
|
2014-04-13 06:05:35 +05:30
|
|
|
{{end}}
|
|
|
|
{{if .Owner.Email}}
|
2014-04-27 12:35:13 +05:30
|
|
|
<li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li>
|
2014-04-13 06:05:35 +05:30
|
|
|
{{end}}
|
|
|
|
{{if .Owner.Website}}
|
2014-04-27 12:35:13 +05:30
|
|
|
<li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
|
2014-04-13 06:05:35 +05:30
|
|
|
{{end}}
|
|
|
|
<li class="list-group-item"><i class="fa fa-clock-o"></i>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li>
|
2014-04-14 03:42:07 +05:30
|
|
|
<!-- <hr> -->
|
|
|
|
<!-- <li class="list-group-item" style="padding-top: 5px;">
|
2014-04-12 10:17:35 +05:30
|
|
|
<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>
|
2014-04-14 03:42:07 +05:30
|
|
|
<hr> -->
|
2014-03-02 19:17:55 +05:30
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-25 16:14:37 +05:30
|
|
|
<div id="user-activity" class="col-md-9">
|
2014-03-26 08:19:18 +05:30
|
|
|
<ul class="nav nav-tabs" id="user-act-tabs">
|
2014-03-15 12:58:06 +05:30
|
|
|
<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>
|
2014-03-02 19:17:55 +05:30
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
2014-03-15 12:58:06 +05:30
|
|
|
{{if eq .TabName "activity"}}
|
|
|
|
<div class="tab-pane active">
|
|
|
|
<ul class="list-unstyled activity-list">
|
|
|
|
{{range .Feeds}}
|
|
|
|
<li>
|
|
|
|
<i class="icon fa fa-{{ActionIcon .OpType}}"></i>
|
2014-03-29 17:20:25 +05:30
|
|
|
<div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div>
|
2014-03-15 12:58:06 +05:30
|
|
|
<span class="clearfix"></span>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
2014-04-20 12:24:26 +05:30
|
|
|
<li>No public activity yet.</li>
|
2014-03-15 12:58:06 +05:30
|
|
|
{{end}}
|
|
|
|
</ul>
|
2014-03-15 10:20:51 +05:30
|
|
|
</div>
|
2014-03-15 12:58:06 +05:30
|
|
|
{{else}}
|
2014-03-15 21:43:45 +05:30
|
|
|
<div class="tab-pane active">
|
2014-03-15 22:11:12 +05:30
|
|
|
<ul class="list-unstyled repo-list">
|
2014-03-15 21:43:45 +05:30
|
|
|
{{range .Repos}}
|
2014-03-15 22:11:12 +05:30
|
|
|
<li>
|
2014-03-24 04:39:11 +05:30
|
|
|
<div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
|
2014-03-15 22:11:12 +05:30
|
|
|
<h4>
|
2014-04-14 13:41:33 +05:30
|
|
|
<a href="/{{$.Owner.Name}}/{{.Name}}">{{.Name}}{{if .IsPrivate}} <span class="label label-default">Private</span>{{end}}</a>
|
2014-03-15 22:11:12 +05:30
|
|
|
</h4>
|
|
|
|
<p class="desc">{{.Description}}</p>
|
|
|
|
<div class="info">Last updated {{.Updated|TimeSince}}</div>
|
|
|
|
</li>
|
2014-03-15 21:43:45 +05:30
|
|
|
{{end}}
|
2014-03-15 22:11:12 +05:30
|
|
|
</ul>
|
2014-03-15 21:43:45 +05:30
|
|
|
</div>
|
2014-03-15 12:58:06 +05:30
|
|
|
{{end}}
|
2014-03-02 19:17:55 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-30 14:33:00 +05:30
|
|
|
{{template "base/footer" .}}
|