0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 17:04:12 -05:00
forgejo/templates/user/profile.tmpl

66 lines
3.2 KiB
Cheetah
Raw Normal View History

{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 05:44:37 -05: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-19 22:20:55 -05: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 05:44:37 -05:00
<img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
</a>
2014-03-25 05:44:37 -05:00
<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}}">{{.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>
</ul>
</div>
</div>
2014-03-25 05:44:37 -05:00
<div id="user-activity" class="col-md-9">
2014-03-25 21:49:18 -05: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 .OpType}}"></i>
2014-03-29 05:55:51 -05:00
<div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . $.Owner.AvatarLink | str2html}}</div>
<span class="clearfix"></span>
</li>
{{else}}
2014-03-15 09:29:18 -05:00
<li>No any public activity yet.</li>
{{end}}
</ul>
2014-03-14 23:50:51 -05:00
</div>
{{else}}
2014-03-15 11:13:45 -05:00
{{$owner := .Owner}}
<div class="tab-pane active">
2014-03-15 11:41:12 -05:00
<ul class="list-unstyled repo-list">
2014-03-15 11:13:45 -05:00
{{range .Repos}}
2014-03-15 11:41:12 -05:00
<li>
2014-03-23 18:09:11 -05:00
<div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
2014-03-15 11:41:12 -05: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-15 11:13:45 -05:00
{{end}}
2014-03-15 11:41:12 -05:00
</ul>
2014-03-15 11:13:45 -05:00
</div>
{{end}}
</div>
</div>
</div>
{{template "base/footer" .}}