fix signup button on profile on pro

This commit is contained in:
Lisa Passing 2015-04-22 15:43:39 +02:00
parent 89f055cbd0
commit 60bd9e6a26
2 changed files with 20 additions and 23 deletions

View File

@ -35,10 +35,6 @@
.cta-btn
text-align: right
@media #{$large-up}
position: absolute
top: 1rem
right: 0
.profile-getstarted
position: relative

View File

@ -1,5 +1,25 @@
{{#if allHooks.isLoaded}}
<header>
{{#if config.billingEndpoint}}
<div class="cta-btn">
{{#if view.subscribed}}
<a class="btn btn-activated" {{bind-attr href="billingUrl"}}>
Subscription active!
</a>
{{else}}
{{#if view.education}}
<a class="btn btn-activated" {{bind-attr href="billingUrl"}}>
Educational account!
</a>
{{else}}
<a class="btn btn-activate" {{bind-attr href="billingUrl"}}>
Sign up this account!
</a>
{{/if}}
{{/if}}
</div>
{{/if}}
<div class="profile-header">
<h1>{{view.name}}</h1>
@ -19,25 +39,6 @@
</button>
<p class="sync-last">last synced {{format-time user.syncedAt}}</p>
</div>
{{#if config.billingEndpoint}}
<div class="cta-btn">
{{#if view.subscribed}}
<a class="btn btn-activated" {{bind-attr href="billingUrl"}}>
Subscription active!
</a>
{{else}}
{{#if view.education}}
<a class="btn btn-activated" {{bind-attr href="billingUrl"}}>
Educational account!
</a>
{{else}}
<a class="btn btn-activate" {{bind-attr href="billingUrl"}}>
Sign up this account!
</a>
{{/if}}
{{/if}}
</div>
{{/if}}
{{#if config.pro}}
<p>We're only showing your private repositories. You can find your public projects on <a href="https://travis-ci.org" title="travis-ci.org">travis-ci.org</a>.</p>
{{else}}