mirror of https://github.com/rancher/ui.git
48 lines
1.2 KiB
Handlebars
48 lines
1.2 KiB
Handlebars
{{yield}}
|
|
{{#if avatar}}
|
|
<div class="gh-avatar">
|
|
{{#if principal.avatarSrc}}
|
|
{{#if (and principal.profileURL link)}}
|
|
<a href="{{principal.profileURL}}" target="_blank">
|
|
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
|
</a>
|
|
{{else}}
|
|
<img src="{{principal.avatarSrc}}" width="{{size}}" height="{{size}}">
|
|
{{/if}}
|
|
{{else}}
|
|
<div class="gh-placeholder">
|
|
{{#unless loading}}
|
|
<img src="{{avatarSrc}}" width="{{size}}" height="{{size}}">
|
|
{{/unless}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="gh-block-content">
|
|
<div class="clip gh-block-name">
|
|
{{#if loading}}
|
|
{{t 'identityBlock.loading'}}
|
|
{{else}}
|
|
{{#if (and principal.profileURL link)}}
|
|
<a href="{{principal.profileURL}}" target="_blank">{{login}}</a>
|
|
{{else}}
|
|
{{#if principal.displayName}}
|
|
{{principal.displayName}}
|
|
{{else if principal.loginName}}
|
|
{{principal.loginName}}
|
|
{{else}}
|
|
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
<div class="gh-block-detail text-small clip">
|
|
{{#if principal.displayType}}
|
|
{{principal.displayType}}
|
|
{{else}}
|
|
|
|
{{/if}}
|
|
</div>
|
|
</div>
|