mirror of https://github.com/gogits/gogs.git
Unknwon
9 years ago
13 changed files with 172 additions and 135 deletions
@ -1,104 +1,86 @@ |
|||||||
{{template "ng/base/head" .}} |
{{template "base/head" .}} |
||||||
{{template "ng/base/header" .}} |
<div class="user profile"> |
||||||
<div class="main-wrapper"> |
<div class="ui container"> |
||||||
<div id="user-profile-page" class="container clear"> |
<div class="ui grid"> |
||||||
<div class="grid-1-5 left"> |
<div class="ui five wide column"> |
||||||
<div> |
<div class="ui card"> |
||||||
{{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}} |
{{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}} |
||||||
<a href="{{AppSubUrl}}/user/settings" id="profile-avatar" original-title="{{.i18n.Tr "user.change_custom_avatar"}}"> |
<a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_custom_avatar"}}" data-variation="inverted tiny" data-position="bottom center"> |
||||||
|
<img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/> |
||||||
|
</a> |
||||||
{{else if eq .SignedUserName .Owner.Name}} |
{{else if eq .SignedUserName .Owner.Name}} |
||||||
<a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}"> |
<a class="image poping up" href="http://gravatar.com/emails/" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center"> |
||||||
|
<img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/> |
||||||
|
</a> |
||||||
{{else}} |
{{else}} |
||||||
<a id="profile-avatar"> |
<span class="image"> |
||||||
|
<img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/> |
||||||
|
</span> |
||||||
{{end}} |
{{end}} |
||||||
<img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=234" title="{{.Owner.Name}}"/> |
<div class="content"> |
||||||
</a> |
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}} |
||||||
<div class="text-center" id="profile-name"> |
<span class="username text center">{{.Owner.Name}}</span> |
||||||
{{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> |
<div class="extra content"> |
||||||
<div class="profile-info"> |
<ul class="text black"> |
||||||
<hr> |
|
||||||
<ul class="list-no-style"> |
|
||||||
{{if .Owner.Location}} |
{{if .Owner.Location}} |
||||||
<li class="list-group-item"><i class="octicon octicon-location"></i> {{.Owner.Location}}</li> |
<li><i class="icon octicon octicon-location"></i> {{.Owner.Location}}</li> |
||||||
{{end}} |
{{end}} |
||||||
{{if and .Owner.Email .IsSigned}} |
{{if and .Owner.Email .IsSigned}} |
||||||
<li class="list-group-item"><i class="octicon octicon-mail"></i> <a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li> |
<li> |
||||||
|
<i class="icon octicon octicon-mail"></i> |
||||||
|
<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a> |
||||||
|
</li> |
||||||
{{end}} |
{{end}} |
||||||
{{if .Owner.Website}} |
{{if .Owner.Website}} |
||||||
<li class="list-group-item"><i class="octicon octicon-link"></i> <a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li> |
<li> |
||||||
|
<i class="icon octicon octicon-link"></i> |
||||||
|
<a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a> |
||||||
|
</li> |
||||||
{{end}} |
{{end}} |
||||||
<li class="list-group-item"><i class="octicon octicon-clock"></i> {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}</li> |
<li><i class="icon octicon octicon-clock"></i> {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}</li> |
||||||
</ul> |
</ul> |
||||||
<hr> |
</div> |
||||||
<ul class="list-no-style"> |
</div> |
||||||
<li class="list-group-item profile-rel"> |
</div> |
||||||
<a class="text-black" href=""> |
<div class="ui eleven wide column"> |
||||||
<strong>{{.Owner.NumFollowers}}</strong> |
<div class="ui secondary pointing menu"> |
||||||
<p>{{.i18n.Tr "user.followers"}}</p> |
<a class="{{if ne .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}"> |
||||||
|
<i class="icon octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}} |
||||||
</a> |
</a> |
||||||
</li> |
<a class="item"> |
||||||
<li class="list-group-item profile-rel"> |
<a class="{{if eq .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}?tab=activity"> |
||||||
<a class="text-black" href=""> |
<i class="icon octicon octicon-rss"></i> {{.i18n.Tr "user.activity"}} |
||||||
<strong>{{.Owner.NumStars}}</strong> |
|
||||||
<p>{{.i18n.Tr "user.starred"}}</p> |
|
||||||
</a> |
</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> |
</a> |
||||||
</li> |
|
||||||
</ul> |
|
||||||
<hr> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<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> |
</div> |
||||||
{{else}} |
{{if ne .TabName "activity"}} |
||||||
<div class="tab-pane active"> |
<div class="ui repository list"> |
||||||
<div id="org-repo-list"> |
|
||||||
{{range .Repos}} |
{{range .Repos}} |
||||||
{{if or (not .IsPrivate) (.HasAccess $.SignedUser)}} |
{{if or (not .IsPrivate) (.HasAccess $.SignedUser)}} |
||||||
<div class="org-repo-item"> |
<div class="item"> |
||||||
<ul class="org-repo-status right"> |
<div class="ui header"> |
||||||
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li> |
|
||||||
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li> |
|
||||||
</ul> |
|
||||||
<h2> |
|
||||||
<a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a> |
<a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a> |
||||||
{{if .IsPrivate}} |
{{if .IsPrivate}} |
||||||
<span class="text-gold"><i class="octicon octicon-lock"></i></span> |
<span class="text gold"><i class="icon octicon octicon-lock"></i></span> |
||||||
{{end}} |
{{end}} |
||||||
</h2> |
|
||||||
<p class="org-repo-description">{{.Description}}</p> |
<div class="ui right metas"> |
||||||
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> |
<span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span> |
||||||
|
<span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span> |
||||||
</div> |
</div> |
||||||
{{end}} |
|
||||||
{{end}} |
|
||||||
</div> |
</div> |
||||||
|
{{if .Description}}<p>{{.Description}}</p>{{end}} |
||||||
|
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> |
||||||
</div> |
</div> |
||||||
{{end}} |
{{end}} |
||||||
|
{{end}} |
||||||
</div> |
</div> |
||||||
</div> |
{{else}} |
||||||
|
<br> |
||||||
|
{{template "user/dashboard/feeds" .}} |
||||||
|
{{end}} |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "ng/base/footer" .}} |
{{template "base/footer" .}} |
Loading…
Reference in new issue