change pro navigation and landing page redirects
This commit is contained in:
parent
88fd47002f
commit
701acecc56
6
app/routes/home-pro.coffee
Normal file
6
app/routes/home-pro.coffee
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
`import TravisRoute from 'travis/routes/basic'`
|
||||||
|
|
||||||
|
Route = TravisRoute.extend
|
||||||
|
needsAuth: false
|
||||||
|
|
||||||
|
`export default Route`
|
|
@ -251,7 +251,7 @@
|
||||||
.list--check,
|
.list--check,
|
||||||
.list--cross
|
.list--cross
|
||||||
@extend %list
|
@extend %list
|
||||||
padding: 0 0 0 1.4em
|
padding: 0 0 0 2em
|
||||||
li
|
li
|
||||||
&:before
|
&:before
|
||||||
content: ""
|
content: ""
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
|
|
||||||
<nav id="navigation" class="navigation {{if is-open 'is-open'}}">
|
<nav id="navigation" class="navigation {{if is-open 'is-open'}}">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://blog.travis-ci.com" class="navigation-anchor">Blog</a></li>
|
|
||||||
<li><a href="http://www.traviscistatus.com/" class="navigation-anchor">Status</a></li>
|
|
||||||
{{#unless config.pro}}
|
{{#unless config.pro}}
|
||||||
|
<li><a href="http://blog.travis-ci.com" title="Travis CI Blog" class="navigation-anchor">Blog</a></li>
|
||||||
|
<li><a href="http://www.traviscistatus.com/" title="Travis CI Status" class="navigation-anchor">Status</a></li>
|
||||||
<li>
|
<li>
|
||||||
<span class="navigation-anchor">Help</span>
|
<span class="navigation-anchor">Help</span>
|
||||||
<ul class="navigation-nested">
|
<ul class="navigation-nested">
|
||||||
|
@ -33,15 +33,9 @@
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if config.pro}}
|
{{#if config.pro}}
|
||||||
<li><a href="http://docs.travis-ci.com">Docs</a></li>
|
<li><a href="/team" title="Travis CI team" class="navigation-anchor">About Us</a></li>
|
||||||
<li>
|
<li><a href="/plans" title="" class="navigation-anchor">Plans & Pricing</a></li>
|
||||||
<span class="navigation-anchor">Legal</span>
|
<li><a href="https://enterprise.travis-ci.com" title="">Enterprise</a></li>
|
||||||
<ul class="navigation-nested">
|
|
||||||
<li><a href={{config.urls.imprint}}>Imprint</a></li>
|
|
||||||
<li><a href={{config.urls.security}}>Security</a></li>
|
|
||||||
<li><a href={{config.urls.terms}}>Terms</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<li class="{{view.classProfile}}">
|
<li class="{{view.classProfile}}">
|
||||||
|
|
|
@ -13,17 +13,19 @@ Location = Ember.HistoryLocation.extend
|
||||||
|
|
||||||
getURL: ->
|
getURL: ->
|
||||||
url = this._super.apply(this, arguments)
|
url = this._super.apply(this, arguments)
|
||||||
unless config.pro
|
|
||||||
if location.pathname == '/'
|
if location.pathname == '/'
|
||||||
if @get('auth.signedIn')
|
if @get('auth.signedIn')
|
||||||
return '/repositories'
|
return '/repositories'
|
||||||
|
else
|
||||||
|
if config.pro
|
||||||
|
return '/home-pro'
|
||||||
else
|
else
|
||||||
return '/home'
|
return '/home'
|
||||||
|
|
||||||
url
|
url
|
||||||
|
|
||||||
formatURL: (logicalPath) ->
|
formatURL: (logicalPath) ->
|
||||||
if logicalPath == '/repositories' || logicalPath == '/home'
|
if logicalPath == '/repositories' || logicalPath == '/home' || logicalPath == '/home-pro'
|
||||||
'/'
|
'/'
|
||||||
else
|
else
|
||||||
@_super.apply this, arguments
|
@_super.apply this, arguments
|
||||||
|
|
Loading…
Reference in New Issue
Block a user