Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add org avatar on top of internal repo icon #11895

Merged
merged 12 commits into from
Jun 26, 2020
1 change: 1 addition & 0 deletions templates/repo/header_icon.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{{else if and (not $.IsMirror) (not $.IsFork) ($.Owner)}}
{{if $.Owner.Visibility.IsPrivate}}
{{svg "octicon-internal-repo" 32}}
<img class="ui avatar image" src="{{$.Owner.RelAvatarLink}}">
{{else}}
{{svg "octicon-repo" 32}}
{{end}}
Expand Down
9 changes: 9 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
top: 5px;
}

&.repo-title .avatar {
margin-left: -23px;
box-shadow: 0 0 0 2px #fff;
CirnoT marked this conversation as resolved.
Show resolved Hide resolved
width: 16px;
height: 16px;
margin-bottom: -30px;
border-radius: 2px;
}

svg.octicon-lock {
margin-left: 5px;
}
Expand Down