gitea/templates/user/profile.tmpl

82 lines
4.0 KiB
Cheetah
Raw Normal View History

{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 18:44:37 +08:00
<div id="body" class="container" data-page="user">
<div id="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">
2014-03-25 18:44:37 +08:00
<img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
</a>
2014-05-01 21:27:12 +08:00
{{if .Owner.FullName}}<span id="user-full-name" class="center-block">{{.Owner.FullName}}</span>{{end}}
2014-03-25 18:44:37 +08:00
<span id="user-name" class="center-block">{{.Owner.Name}}</span>
</div>
<div class="profile-info">
<ul class="list-group">
2014-04-13 08:35:35 +08:00
{{if .Owner.Location}}
2014-04-27 15:05:13 +08:00
<li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
2014-04-13 08:35:35 +08:00
{{end}}
{{if .Owner.Email}}
2014-04-27 15:05:13 +08:00
<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 08:35:35 +08:00
{{end}}
{{if .Owner.Website}}
2014-04-27 15:05:13 +08:00
<li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
2014-04-13 08:35:35 +08:00
{{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 06:12:07 +08:00
<!-- <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>
2014-04-14 06:12:07 +08:00
<hr> -->
</ul>
</div>
</div>
2014-03-25 18:44:37 +08:00
<div id="user-activity" class="col-md-9">
2014-03-26 10:49:18 +08:00
<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>
2014-03-15 12:50:51 +08:00
</div>
{{else}}
2014-03-16 00:13:45 +08:00
<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>
2014-04-14 16:11:33 +08:00
<a href="/{{$.Owner.Name}}/{{.Name}}">{{.Name}}{{if .IsPrivate}} <span class="label label-default">Private</span>{{end}}</a>
2014-03-16 00:41:12 +08:00
</h4>
<p class="desc">{{.Description}}</p>
<div class="info">Last updated {{TimeSince .Updated $.Lang}}</div>
2014-03-16 00:41:12 +08:00
</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>
{{end}}
</div>
</div>
</div>
2014-03-30 17:03:00 +08:00
{{template "base/footer" .}}