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 .cta-btn
text-align: right text-align: right
@media #{$large-up}
position: absolute
top: 1rem
right: 0
.profile-getstarted .profile-getstarted
position: relative position: relative

View File

@ -1,5 +1,25 @@
{{#if allHooks.isLoaded}} {{#if allHooks.isLoaded}}
<header> <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"> <div class="profile-header">
<h1>{{view.name}}</h1> <h1>{{view.name}}</h1>
@ -19,25 +39,6 @@
</button> </button>
<p class="sync-last">last synced {{format-time user.syncedAt}}</p> <p class="sync-last">last synced {{format-time user.syncedAt}}</p>
</div> </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}} {{#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> <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}} {{else}}