60 lines
2.3 KiB
Handlebars
60 lines
2.3 KiB
Handlebars
<aside class="columns medium-4">
|
|
<section class="profile-user">
|
|
<div class="media">
|
|
<div class="media-elem">
|
|
<img src={{auth.gravatarUrl}} alt="">
|
|
</div>
|
|
<div class="media-body">
|
|
{{#link-to 'profile'}}
|
|
<h1>{{userName}}</h1>
|
|
<p>Repositories <strong>{{user.reposCount}}</strong></p>
|
|
{{/link-to}}
|
|
<p class="profile-user-last">Token:
|
|
|
|
{{#if isVisible}}
|
|
<strong>{{auth.currentUser.token}}</strong>
|
|
{{/if}}
|
|
<a {{action 'tokenVisibility'}} class="profile-token-toggle tooltip--profile {{if isVisible 'is-visible'}} dropdown">
|
|
<span class="tooltip-bubble">
|
|
{{#if isVisible}}hide token{{else}}show token{{/if}}
|
|
</span>
|
|
<span class="icon-eye">
|
|
<svg x="0px" y="0px" viewBox="2 -1 17 17" width="20" height="18" xml:space="preserve">
|
|
<g>
|
|
<path d="M17.4,9.6c-0.1-0.2-3.3-4.1-7.4-4.1s-7.3,4-7.4,4.1c-0.2,0.2-0.2,0.6,0,0.8c0.1,0.2,3.3,4.1,7.4,4.1
|
|
s7.3-4,7.4-4.1C17.6,10.2,17.6,9.8,17.4,9.6z M10,13.2c-2.8,0-5.2-2.3-6.1-3.2C4.8,9.1,7.2,6.8,10,6.8c2.8,0,5.2,2.3,6.1,3.2
|
|
C15.2,10.9,12.8,13.2,10,13.2z"/>
|
|
<circle r="2.5" cx="10" cy="10"/>
|
|
</g>
|
|
</svg>
|
|
</span></a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section class="profile-orgs">
|
|
<h1>Organizations</h1>
|
|
{{#collection "accounts-list" contentBinding="organizations"}}
|
|
{{#link-to "account" view.account class="name"}}
|
|
<div class="media">
|
|
<div class="media-elem">
|
|
<img src={{view.avatarUrl}} alt="">
|
|
</div>
|
|
<div class="media-body">
|
|
<h2>{{view.name}}</h2>
|
|
<p>Repositories <strong>{{view.account.reposCount}}</strong></p>
|
|
</div>
|
|
</div>
|
|
{{/link-to}}
|
|
{{else}}
|
|
<p class="profile-text">You are not currently a member of <br> any organization.</p>
|
|
{{/collection}}
|
|
</section>
|
|
{{#if config.githubOrgsOauthAccessSettingsUrl}}
|
|
<section class="profile-additional">
|
|
<p>Is an organization missing?<br>
|
|
<a href={{config.githubOrgsOauthAccessSettingsUrl}} title="Orgs Oauth Access Settings on GitHub">Review and add</a> your authorized organizations.</p>
|
|
</section>
|
|
{{/if}}
|
|
</aside>
|