|
|
@ -2,12 +2,12 @@ |
|
|
|
{{template "ng/base/header" .}} |
|
|
|
{{template "ng/base/header" .}} |
|
|
|
<div class="main-wrapper"> |
|
|
|
<div class="main-wrapper"> |
|
|
|
<div id="user-profile-page" class="container clear"> |
|
|
|
<div id="user-profile-page" class="container clear"> |
|
|
|
<div class="grid-1-4 left"> |
|
|
|
<div class="grid-1-5 left"> |
|
|
|
<div class="text-center"> |
|
|
|
<div> |
|
|
|
<a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}"> |
|
|
|
<a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}"> |
|
|
|
<img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=200"title="{{.Owner.Name}}"/> |
|
|
|
<img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=200"title="{{.Owner.Name}}"/> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<div id="profile-name"> |
|
|
|
<div class="text-center" id="profile-name"> |
|
|
|
{{if .Owner.FullName}}<span id="profile-fullname" class="center-block">{{.Owner.FullName}}</span><br>{{end}} |
|
|
|
{{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> |
|
|
|
<span class="center-block" id="profile-username">{{.Owner.Name}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -50,40 +50,42 @@ |
|
|
|
<hr> |
|
|
|
<hr> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="grid-3-4 left"> |
|
|
|
<div class="grid-4-5 left"> |
|
|
|
<ul class="menu menu-line" id="profile-header"> |
|
|
|
<div id="profile-body"> |
|
|
|
<li> |
|
|
|
<ul class="menu menu-line" id="profile-header"> |
|
|
|
<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 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> |
|
|
|
</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> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
<div class="tab-content"> |
|
|
|
</ul> |
|
|
|
{{if eq .TabName "activity"}} |
|
|
|
<div class="tab-content"> |
|
|
|
<div class="tab-pane active" id="dashboard-news"> |
|
|
|
{{if eq .TabName "activity"}} |
|
|
|
<br> |
|
|
|
<div class="tab-pane active" id="dashboard-news"> |
|
|
|
{{template "user/dashboard/feeds" .}} |
|
|
|
<br> |
|
|
|
</div> |
|
|
|
{{template "user/dashboard/feeds" .}} |
|
|
|
{{else}} |
|
|
|
</div> |
|
|
|
<div class="tab-pane active"> |
|
|
|
{{else}} |
|
|
|
<div id="org-repo-list"> |
|
|
|
<div class="tab-pane active"> |
|
|
|
{{range .Repos}} |
|
|
|
<div id="org-repo-list"> |
|
|
|
{{if not .IsPrivate}} |
|
|
|
{{range .Repos}} |
|
|
|
<div class="org-repo-item"> |
|
|
|
{{if not .IsPrivate}} |
|
|
|
<ul class="org-repo-status right"> |
|
|
|
<div class="org-repo-item"> |
|
|
|
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li> |
|
|
|
<ul class="org-repo-status right"> |
|
|
|
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li> |
|
|
|
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li> |
|
|
|
</ul> |
|
|
|
<li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li> |
|
|
|
<h2><a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2> |
|
|
|
</ul> |
|
|
|
<p class="org-repo-description">{{.Description}}</p> |
|
|
|
<h2><a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2> |
|
|
|
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> |
|
|
|
<p class="org-repo-description">{{.Description}}</p> |
|
|
|
</div> |
|
|
|
<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|