only render profile dropdown if signed in

This commit is contained in:
Lisa Passing 2015-03-24 17:25:35 +01:00
parent 45fbd5a341
commit c5e35e43d5

View File

@ -56,19 +56,21 @@
<button class="signing-in button--signingin">Signing In <span class="sync-spinner"><i></i><i></i><i></i></span></button>
{{/if}}
</p>
<ul class="navigation-nested">
<li>
{{#link-to "profile" class="signed-in"}}Accounts{{/link-to}}
</li>
{{#if config.billingEndpoint}}
{{#if auth.signedIn}}
<ul class="navigation-nested">
<li>
<a {{bind-attr href="config.billingEndpoint"}}>Billing</a>
{{#link-to "profile" class="signed-in"}}Accounts{{/link-to}}
</li>
{{/if}}
<li>
<a href="/" {{action "signOut" target="auth"}}>Sign Out</a>
</li>
</ul>
{{#if config.billingEndpoint}}
<li>
<a {{bind-attr href="config.billingEndpoint"}}>Billing</a>
</li>
{{/if}}
<li>
<a href="/" {{action "signOut" target="auth"}}>Sign Out</a>
</li>
</ul>
{{/if}}
</li>
</ul>
</div>