mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-30 05:50:50 +01:00
58 lines
2.8 KiB
Cheetah
58 lines
2.8 KiB
Cheetah
{{template "base/head" .}}
|
|
{{template "base/navbar" .}}
|
|
<div id="gogs-body" class="container">
|
|
<div id="gogs-user-profile" class="col-md-3">
|
|
<div class="profile-avatar text-center">
|
|
<a href="{{.Owner.HomeLink}}" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change Avatar">
|
|
<img id="gogs-user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="username"/>
|
|
</a>
|
|
<span id="gogs-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>
|
|
<div id="gogs-user-activity" class="col-md-9">
|
|
<ul class="nav nav-tabs" id="gogs-user-act-tabs" data-init="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>
|
|
<div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div>
|
|
<span class="clearfix"></span>
|
|
</li>
|
|
{{else}}
|
|
<li>No any public activity yet.</li>
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
{{else}}
|
|
{{$owner := .Owner}}
|
|
<div class="tab-pane active">
|
|
{{range .Repos}}
|
|
<h4><a href="/{{$owner.Name}}/{{.LowerName}}">{{.LowerName}}</a> <small>Star:{{.NumStars}} Fork:{{.NumForks}}</small></h4>
|
|
<p>{{.Description}}</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}} |