1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 10:04:27 +00:00
gitea/templates/user/profile.tmpl

105 lines
5.5 KiB
Cheetah
Raw Normal View History

2014-09-25 23:33:39 +00:00
{{template "ng/base/head" .}}
{{template "ng/base/header" .}}
<div class="main-wrapper">
<div id="user-profile-page" class="container clear">
2014-10-19 06:22:38 +00:00
<div class="grid-1-5 left">
<div>
2015-08-10 16:09:28 +00:00
{{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}}
2014-11-21 15:58:08 +00:00
<a href="{{AppSubUrl}}/user/settings" id="profile-avatar" original-title="{{.i18n.Tr "user.change_custom_avatar"}}">
2015-08-10 16:09:28 +00:00
{{else if eq .SignedUserName .Owner.Name}}
2014-09-25 23:33:39 +00:00
<a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}">
{{else}}
2015-09-24 22:42:29 +00:00
<a id="profile-avatar">
2014-11-21 15:58:08 +00:00
{{end}}
<img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=234" title="{{.Owner.Name}}"/>
2014-09-25 23:33:39 +00:00
</a>
2014-10-19 06:22:38 +00:00
<div class="text-center" id="profile-name">
2014-09-25 23:33:39 +00:00
{{if .Owner.FullName}}<span id="profile-fullname" class="center-block">{{.Owner.FullName}}</span><br>{{end}}
<span class="center-block" id="profile-username">{{.Owner.Name}}</span>
</div>
</div>
<div class="profile-info">
<hr>
2014-09-25 23:33:39 +00:00
<ul class="list-no-style">
{{if .Owner.Location}}
<li class="list-group-item"><i class="octicon octicon-location"></i>&nbsp;&nbsp;{{.Owner.Location}}</li>
{{end}}
2015-07-31 05:53:14 +00:00
{{if and .Owner.Email .IsSigned}}
2014-09-25 23:33:39 +00:00
<li class="list-group-item"><i class="octicon octicon-mail"></i>&nbsp;&nbsp;<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li>
{{end}}
{{if .Owner.Website}}
<li class="list-group-item"><i class="octicon octicon-link"></i>&nbsp;&nbsp;<a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
{{end}}
<li class="list-group-item"><i class="octicon octicon-clock"></i>&nbsp;&nbsp;{{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}</li>
2014-09-25 23:33:39 +00:00
</ul>
<hr>
<ul class="list-no-style">
<li class="list-group-item profile-rel">
<a class="text-black" href="">
<strong>{{.Owner.NumFollowers}}</strong>
<p>{{.i18n.Tr "user.followers"}}</p>
</a>
</li>
<li class="list-group-item profile-rel">
<a class="text-black" href="">
<strong>{{.Owner.NumStars}}</strong>
<p>{{.i18n.Tr "user.starred"}}</p>
</a>
</li>
<li class="list-group-item profile-rel">
<a class="text-black" href="">
<strong>{{.Owner.NumFollowings}}</strong>
<p>{{.i18n.Tr "user.following"}}</p>
</a>
</li>
</ul>
<hr>
</div>
</div>
2014-10-19 06:22:38 +00:00
<div class="grid-4-5 left">
<div id="profile-body">
<ul class="menu menu-line" id="profile-header">
<li>
<a {{if not .TabName}}class="current"{{end}} href="{{.Owner.HomeLink}}"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}</a>
</li>
<li>
<a {{if eq .TabName "activity"}}class="current"{{end}} href="{{.Owner.HomeLink}}?tab=activity"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.activity"}}</a>
</li>
</ul>
<div class="tab-content">
{{if eq .TabName "activity"}}
<div class="tab-pane active" id="dashboard-news">
<br>
{{template "user/dashboard/feeds" .}}
</div>
{{else}}
<div class="tab-pane active">
<div id="org-repo-list">
{{range .Repos}}
2015-02-13 07:14:57 +00:00
{{if or (not .IsPrivate) (.HasAccess $.SignedUser)}}
2014-10-19 06:22:38 +00:00
<div class="org-repo-item">
<ul class="org-repo-status right">
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
</ul>
2014-11-07 03:06:41 +00:00
<h2>
<a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a>
{{if .IsPrivate}}
<span class="text-gold"><i class="octicon octicon-lock"></i></span>
{{end}}
</h2>
2014-10-19 06:22:38 +00:00
<p class="org-repo-description">{{.Description}}</p>
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
</div>
{{end}}
2014-09-25 23:33:39 +00:00
{{end}}
2014-10-19 06:22:38 +00:00
</div>
2014-09-25 23:33:39 +00:00
</div>
2014-10-19 06:22:38 +00:00
{{end}}
2014-09-25 23:33:39 +00:00
</div>
2014-03-15 16:13:45 +00:00
</div>
</div>
</div>
</div>
2014-09-25 23:33:39 +00:00
{{template "ng/base/footer" .}}