|
|
@@ -50,16 +50,46 @@ |
|
|
|
{{end}} |
|
|
|
<li>{{svg "octicon-clock" 16}} {{.i18n.Tr "user.join_on"}} {{.Owner.CreatedUnix.FormatShort}}</li> |
|
|
|
{{if and .Orgs .HasOrgsVisible}} |
|
|
|
<li> |
|
|
|
<ul class="user-orgs"> |
|
|
|
|
|
|
|
<li style="border-bottom: none;padding-bottom: 0;"><div style="border-bottom: 1px solid #eaeaea;padding-top: 5px;padding-bottom:5px"> <b> 组织</b></div></li> |
|
|
|
<li style="padding-bottom: 0px;"> |
|
|
|
<!-- <ul class="user-orgs"> |
|
|
|
{{range .Orgs}} |
|
|
|
{{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.IsUserPartOfOrg $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}} |
|
|
|
<li> |
|
|
|
<a href="{{.HomeLink}}"><img class="ui image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> |
|
|
|
<ul> |
|
|
|
<a href="{{.HomeLink}}"><img class="ui image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> |
|
|
|
<span>{{.Name}}</span> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</ul> |
|
|
|
</ul> --> |
|
|
|
|
|
|
|
{{range .Orgs}} |
|
|
|
<ul class="user-orgs"> |
|
|
|
|
|
|
|
{{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.IsUserPartOfOrg $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}} |
|
|
|
<li class="infor" style="width: 15%;" > |
|
|
|
<a href="{{.HomeLink}}"><img class="ui image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a> |
|
|
|
</li> |
|
|
|
<li class="infor" style="width: 35%;"> |
|
|
|
<a class="ui image poping up" style="color: #0366D6;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" href="{{.HomeLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted">{{.Name}}</a> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li class="infor" style="width: 25%;"> |
|
|
|
|
|
|
|
<img style="width: 14px; height: 14px;border: none;" src="/img/member.svg" > |
|
|
|
<span style="color: rgba(0,0,0,.4);padding-left: 5px;">{{.NumMembers}}</span> |
|
|
|
</li> |
|
|
|
<li class="infor" style="width: 25%;"> |
|
|
|
<img style="width: 14px; height: 14px" src="/img/pro_num.svg" > |
|
|
|
<span style="color: rgba(0,0,0,.4);padding-left: 5px;">{{.NumRepos}}</span> |
|
|
|
</li> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</ul> |
|
|
|
{{end}} |
|
|
|
</li> |
|
|
|
{{end}} |
|
|
|
{{if and .IsSigned (ne .SignedUserName .Owner.Name)}} |
|
|
@@ -83,7 +113,11 @@ |
|
|
|
</div> |
|
|
|
<div class="ui eleven wide column"> |
|
|
|
<div class="ui secondary stackable pointing menu"> |
|
|
|
<a class='{{if and (ne .TabName "datasets") (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}"> |
|
|
|
<!-- <a class='{{if and (ne .TabName "datasets") (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}"> |
|
|
|
{{svg "octicon-repo" 16}} {{.i18n.Tr "user.repositories"}} |
|
|
|
</a> --> |
|
|
|
|
|
|
|
<a class='{{if eq .TabName "repository" }}active{{end}} item' href="{{.Owner.HomeLink}}?tab=repository"> |
|
|
|
{{svg "octicon-repo" 16}} {{.i18n.Tr "user.repositories"}} |
|
|
|
</a> |
|
|
|
<a class='{{if eq .TabName "datasets"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=datasets"> |
|
|
@@ -144,3 +178,22 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{template "base/footer" .}} |
|
|
|
|
|
|
|
<style> |
|
|
|
.infor{ |
|
|
|
margin: auto 0; |
|
|
|
|
|
|
|
} |
|
|
|
.user-orgs{ |
|
|
|
padding: 10px 0px; |
|
|
|
} |
|
|
|
.user-orgs li{ |
|
|
|
|
|
|
|
max-width: 50%; |
|
|
|
float: right; |
|
|
|
} |
|
|
|
.user.profile .ui.card .extra.content ul { |
|
|
|
padding: 5px 0; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |