2014-03-02 21:47:55 +08:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-17 15:17:44 +08:00
|
|
|
<div id="gogs-body" class="container" data-page="user">
|
2014-03-02 21:47:55 +08:00
|
|
|
<div id="gogs-user-profile" class="col-md-3">
|
|
|
|
<div class="profile-avatar text-center">
|
2014-03-20 11:20:55 +08:00
|
|
|
<a href="http://gravatar.com/emails/" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change your avatar at gravatar.com">
|
|
|
|
<img id="gogs-user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
|
2014-03-02 21:47:55 +08:00
|
|
|
</a>
|
2014-03-15 15:28:06 +08:00
|
|
|
<span id="gogs-user-name" class="center-block">{{.Owner.Name}}</span>
|
2014-03-02 21:47:55 +08:00
|
|
|
</div>
|
|
|
|
<div class="profile-info">
|
|
|
|
<ul class="list-group">
|
2014-03-15 10:35:04 +08:00
|
|
|
{{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}}
|
2014-03-15 15:28:06 +08:00
|
|
|
<li class="list-group-item"><i class="fa fa-clock-o"></i>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li>
|
2014-03-02 21:47:55 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="gogs-user-activity" class="col-md-9">
|
2014-03-13 14:08:49 +08:00
|
|
|
<ul class="nav nav-tabs" id="gogs-user-act-tabs" data-init="tabs">
|
2014-03-15 15:28:06 +08:00
|
|
|
<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 21:47:55 +08:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
2014-03-15 15:28:06 +08:00
|
|
|
{{if eq .TabName "activity"}}
|
|
|
|
<div class="tab-pane active">
|
|
|
|
<ul class="list-unstyled activity-list">
|
2014-03-17 00:07:35 +08:00
|
|
|
{{$avatarLink := .Owner.AvatarLink}}
|
2014-03-15 15:28:06 +08:00
|
|
|
{{range .Feeds}}
|
|
|
|
<li>
|
|
|
|
<i class="icon fa fa-{{ActionIcon .OpType}}"></i>
|
2014-03-17 00:07:35 +08:00
|
|
|
<div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . $avatarLink | str2html}}</div>
|
2014-03-15 15:28:06 +08:00
|
|
|
<span class="clearfix"></span>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
2014-03-15 22:29:18 +08:00
|
|
|
<li>No any public activity yet.</li>
|
2014-03-15 15:28:06 +08:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
2014-03-15 12:50:51 +08:00
|
|
|
</div>
|
2014-03-15 15:28:06 +08:00
|
|
|
{{else}}
|
2014-03-16 00:13:45 +08:00
|
|
|
{{$owner := .Owner}}
|
|
|
|
<div class="tab-pane active">
|
2014-03-16 00:41:12 +08:00
|
|
|
<ul class="list-unstyled repo-list">
|
2014-03-16 00:13:45 +08:00
|
|
|
{{range .Repos}}
|
2014-03-16 00:41:12 +08:00
|
|
|
<li>
|
2014-03-24 07:09:11 +08:00
|
|
|
<div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
|
2014-03-16 00:41:12 +08:00
|
|
|
<h4>
|
|
|
|
<a href="/{{$owner.Name}}/{{.LowerName}}">{{.LowerName}}</a>
|
|
|
|
</h4>
|
|
|
|
<p class="desc">{{.Description}}</p>
|
|
|
|
<div class="info">Last updated {{.Updated|TimeSince}}</div>
|
|
|
|
</li>
|
2014-03-16 00:13:45 +08:00
|
|
|
{{end}}
|
2014-03-16 00:41:12 +08:00
|
|
|
</ul>
|
2014-03-16 00:13:45 +08:00
|
|
|
</div>
|
2014-03-15 15:28:06 +08:00
|
|
|
{{end}}
|
2014-03-02 21:47:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|