Add a message for travis-ci.com as well.
Switched the logic around to make a bit more sense with the configuration conditionals.
This commit is contained in:
parent
aaf777ce9d
commit
34c07325d3
|
@ -60,5 +60,9 @@ Travis.ProfileController = Travis.Controller.extend
|
||||||
@set("params.#{key}", params[key]) for key, value of params
|
@set("params.#{key}", params[key]) for key, value of params
|
||||||
|
|
||||||
showPrivateReposHint: (->
|
showPrivateReposHint: (->
|
||||||
|
Travis.config.show_repos_hint == 'private'
|
||||||
|
) .property()
|
||||||
|
|
||||||
|
showPublicReposHint: (->
|
||||||
Travis.config.show_repos_hint == 'public'
|
Travis.config.show_repos_hint == 'public'
|
||||||
) .property()
|
) .property()
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
{{#if showPrivateReposHint}}
|
|
||||||
<p class="tip">
|
<p class="tip">
|
||||||
|
{{#if showPrivateReposHint}}
|
||||||
We're only showing <strong>your public repositories</strong> below.
|
We're only showing <strong>your public repositories</strong> below.
|
||||||
You can find your <strong>private projects on <a href="https://travis-ci.com?utm_source=hooks">travis-ci.com</a></strong>.
|
You can find your <strong>private projects on <a href="https://travis-ci.com?utm_source=hooks">travis-ci.com</a></strong>.
|
||||||
|
{{/if}}
|
||||||
|
{{#if showPublicReposHint}}
|
||||||
|
We're only showing <strong>your private repositories</strong> below.
|
||||||
|
You can find your <strong>public projects on <a href="https://travis-ci.org?utm_source=hooks">travis-ci.org</a></strong>.
|
||||||
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<p class="tip">
|
<p class="tip">
|
||||||
Enable your projects below by flicking the switch, add a <a href="http://docs.travis-ci.com">.travis.yml</a> to your project, and push a new commit to
|
Enable your projects below by flicking the switch, add a <a href="http://docs.travis-ci.com">.travis.yml</a> to your project, and push a new commit to
|
||||||
|
|
|
@ -82,7 +82,7 @@ $.extend Travis,
|
||||||
ga_code: $('meta[name="travis.ga_code"]').attr('value')
|
ga_code: $('meta[name="travis.ga_code"]').attr('value')
|
||||||
code_climate: $('meta[name="travis.code_climate"]').attr('value')
|
code_climate: $('meta[name="travis.code_climate"]').attr('value')
|
||||||
code_climate_url: $('meta[name="travis.code_climate_url"]').attr('value')
|
code_climate_url: $('meta[name="travis.code_climate_url"]').attr('value')
|
||||||
show_repos_hint: 'public'
|
show_repos_hint: 'private'
|
||||||
|
|
||||||
CONFIG_KEYS_MAP: {
|
CONFIG_KEYS_MAP: {
|
||||||
go: 'Go'
|
go: 'Go'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user