|
|
|
@@ -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)}} |
|
|
|
@@ -79,13 +109,6 @@ |
|
|
|
{{end}} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div > |
|
|
|
<ul> |
|
|
|
<li> |
|
|
|
<ul></ul><ul></ul> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui eleven wide column"> |
|
|
|
@@ -155,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> |