hide some UI elements for enterprise
This commit is contained in:
parent
1d0fb6468e
commit
90408dfb47
|
@ -1,5 +1,12 @@
|
|||
import TravisRoute from 'travis/routes/basic';
|
||||
import config from 'travis/config/environment';
|
||||
|
||||
export default TravisRoute.extend({
|
||||
needsAuth: false
|
||||
needsAuth: false,
|
||||
|
||||
activate: function() {
|
||||
if (config.enterprise) {
|
||||
return this.transitionTo('auth');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -2,25 +2,21 @@
|
|||
|
||||
<header>
|
||||
|
||||
{{#if config.billingEndpoint}}
|
||||
<div class="cta-btn">
|
||||
{{#if subscribeButtonInfo.subscribed}}
|
||||
<a class="btn btn-activated" href={{billingUrl}}>
|
||||
Subscription active!
|
||||
</a>
|
||||
{{else}}
|
||||
{{#if subscribeButtonInfo.education}}
|
||||
<a class="btn btn-activated" href={{billingUrl}}>
|
||||
Educational account!
|
||||
</a>
|
||||
{{#unless config.enterprise}}
|
||||
{{#if config.billingEndpoint}}
|
||||
<div class="cta-btn">
|
||||
{{#if subscribeButtonInfo.subscribed}}
|
||||
<a class="btn btn-activated" href={{billingUrl}}>Subscription active!</a>
|
||||
{{else}}
|
||||
<a class="btn btn-activate" href={{billingUrl}}>
|
||||
Sign up this account!
|
||||
</a>
|
||||
{{#if subscribeButtonInfo.education}}
|
||||
<a class="btn btn-activated" href={{billingUrl}}>Educational account!</a>
|
||||
{{else}}
|
||||
<a class="btn btn-activate" href={{billingUrl}}> Sign up this account!</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
||||
<div class="profile-header">
|
||||
<h1>{{accountName}}</h1>
|
||||
|
@ -35,9 +31,9 @@
|
|||
<p>We're only showing your public repositories. You can find your private projects on <a href="https://travis-ci.com" title="travis-ci.com">travis-ci.com</a>.</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
</header>
|
||||
|
||||
{{#unless config.enterprise}}
|
||||
<section class="profile-getstarted">
|
||||
{{!-- <a href="#" class="dismiss"><span class="icon icon--dismiss-grey"></span></a> --}}
|
||||
<ol class="row">
|
||||
|
@ -61,7 +57,7 @@
|
|||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
{{/unless}}
|
||||
<div>
|
||||
<ul class="profile-hooklist">
|
||||
{{#each hooks as |hook|}}
|
||||
|
|
|
@ -3,32 +3,40 @@
|
|||
<div class="footer-elem">
|
||||
<img src="/images/ui/footer-logo.svg">
|
||||
</div>
|
||||
<div class="footer-elem">
|
||||
<h3>©Travis CI, GmbH</h3>
|
||||
<p>Rigaer Straße 8<br>10247 Berlin, Germany <br>
|
||||
<a href="https://docs.travis-ci.com/imprint.html">Imprint</a></p>
|
||||
</div>
|
||||
|
||||
{{#unless config.enterprise}}
|
||||
<div class="footer-elem">
|
||||
<h3>©Travis CI, GmbH</h3>
|
||||
<p>Rigaer Straße 8<br>10247 Berlin, Germany <br>
|
||||
<a href="https://docs.travis-ci.com/imprint.html">Imprint</a></p>
|
||||
</div>
|
||||
{{/unless}}
|
||||
<div class="footer-elem">
|
||||
<h3>Help</h3>
|
||||
<ul>
|
||||
<li><a href="https://docs.travis-ci.com">Documentation</a></li>
|
||||
<li><a href="https://blog.travis-ci.com/">Blog</a></li>
|
||||
<li><a href="mailto:support@travis-ci.com">Email</a></li>
|
||||
<li><a href="https://twitter.com/travisci">Twitter</a></li>
|
||||
{{#unless config.enterprise}}
|
||||
<li><a href="https://blog.travis-ci.com/">Blog</a></li>
|
||||
<li><a href="mailto:support@travis-ci.com">Email</a></li>
|
||||
<li><a href="https://twitter.com/travisci">Twitter</a></li>
|
||||
{{/unless}}
|
||||
</ul>
|
||||
</div>
|
||||
{{#if config.pro}}
|
||||
{{#unless config.enterprise}}
|
||||
{{#if config.pro}}
|
||||
<div class="footer-elem">
|
||||
<h3>Legal</h3>
|
||||
<ul>
|
||||
<li><a href="https://docs.travis-ci.com/imprint.html">Imprint</a></li>
|
||||
<li><a href="https://billing.travis-ci.com/pages/terms">Terms of Service</a></li>
|
||||
<li><a href="https://billing.travis-ci.com/pages/security">Security Statement</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="footer-elem">
|
||||
<h3>Legal</h3>
|
||||
<ul>
|
||||
<li><a href="https://docs.travis-ci.com/imprint.html">Imprint</a></li>
|
||||
<li><a href="https://billing.travis-ci.com/pages/terms">Terms of Service</a></li>
|
||||
<li><a href="https://billing.travis-ci.com/pages/security">Security Statement</a></li>
|
||||
</ul>
|
||||
{{travis-status}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="footer-elem">
|
||||
{{travis-status}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -5,32 +5,36 @@
|
|||
<button type="button" id="tofuburger" class="tofuburger" {{action 'toggleBurgerMenu'}}>Toggle Menu</button>
|
||||
</div>
|
||||
|
||||
{{#if auth.signedIn}}
|
||||
{{#unless config.enterprise}}
|
||||
{{#if auth.signedIn}}
|
||||
|
||||
{{broadcast-tower toggleBroadcasts="toggleBroadcasts" status=broadcasts.lastBroadcastStatus}}
|
||||
{{broadcast-tower toggleBroadcasts="toggleBroadcasts" status=broadcasts.lastBroadcastStatus}}
|
||||
|
||||
<ul class="broadcasts {{if showBroadcasts 'is-open'}}">
|
||||
{{#each broadcasts.content as |broadcast|}}
|
||||
<li><p><span class="broadcast-status {{broadcast.category}}" title="Transmitted on {{broadcast.updated_at}}"></span> {{{broadcast.message}}} <a {{action 'markBroadcastAsSeen' broadcast}} class="icon-close"></a></p></li>
|
||||
{{else}}
|
||||
<li><p>There are no broadcasts transmitted</p></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
<ul class="broadcasts {{if showBroadcasts 'is-open'}}">
|
||||
{{#each broadcasts.content as |broadcast|}}
|
||||
<li><p><span class="broadcast-status {{broadcast.category}}" title="Transmitted on {{broadcast.updated_at}}"></span> {{{broadcast.message}}} <a {{action 'markBroadcastAsSeen' broadcast}} class="icon-close"></a></p></li>
|
||||
{{else}}
|
||||
<li><p>There are no broadcasts transmitted</p></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
||||
<nav id="navigation" class="navigation {{if is-open 'is-open'}}">
|
||||
<ul>
|
||||
{{#unless config.pro}}
|
||||
<li><a href="https://blog.travis-ci.com" title="Travis CI Blog" class="navigation-anchor">Blog</a></li>
|
||||
<li><a href="https://www.traviscistatus.com/" title="Travis CI Status" class="navigation-anchor">Status</a></li>
|
||||
<li>
|
||||
<span class="navigation-anchor">Help</span>
|
||||
<ul class="navigation-nested">
|
||||
<li><a href="https://docs.travis-ci.com">Docs</a></li>
|
||||
<li><a href="https://docs.travis-ci.com/imprint.html" alt="Imprint">Imprint</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{{/unless}}
|
||||
|
||||
{{#unless config.enterprise}}
|
||||
{{#unless config.pro}}
|
||||
<li><a href="https://blog.travis-ci.com" title="Travis CI Blog" class="navigation-anchor">Blog</a></li>
|
||||
<li><a href="https://www.traviscistatus.com/" title="Travis CI Status" class="navigation-anchor">Status</a></li>
|
||||
<li>
|
||||
<span class="navigation-anchor">Help</span>
|
||||
<ul class="navigation-nested">
|
||||
<li><a href="https://docs.travis-ci.com">Docs</a></li>
|
||||
<li><a href="https://docs.travis-ci.com/imprint.html" alt="Imprint">Imprint</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{{/unless}}
|
||||
|
||||
{{#if config.pro}}
|
||||
{{#unless auth.signedIn}}
|
||||
|
@ -50,6 +54,11 @@
|
|||
</li>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if auth.signedIn}}
|
||||
<li><a class="navigation-anchor" title="Documentation" href="https://docs.travis-ci.com">Docs</a></li>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
|
||||
<li class="{{classProfile}}">
|
||||
{{#if auth.signedOut}}
|
||||
|
@ -70,9 +79,11 @@
|
|||
{{#link-to "profile" class="signed-in"}}Accounts{{/link-to}}
|
||||
</li>
|
||||
{{#if config.billingEndpoint}}
|
||||
<li>
|
||||
<a href={{config.billingEndpoint}}>Billing</a>
|
||||
</li>
|
||||
{{#unless config.enterprise}}
|
||||
<li>
|
||||
<a href={{config.billingEndpoint}}>Billing</a>
|
||||
</li>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
<li>
|
||||
<a href="/" {{action "signOut" target="auth"}}>Sign Out</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user