display actiavte options on not-active of if user has pushPermissions
This commit is contained in:
parent
75ce90fc03
commit
e4b689b0d5
|
@ -41,7 +41,7 @@ Controller = Ember.ArrayController.extend
|
||||||
false
|
false
|
||||||
).property('tab', 'repo.builds', 'repo.branches')
|
).property('tab', 'repo.builds', 'repo.branches')
|
||||||
|
|
||||||
things: (->
|
noticeData: (->
|
||||||
return {
|
return {
|
||||||
repo: @get('repo'),
|
repo: @get('repo'),
|
||||||
auth: @auth.token()
|
auth: @auth.token()
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
{{#if content.isLoaded}}
|
{{#if content.isLoaded}}
|
||||||
{{!-- <table id="builds" class="list"> --}}
|
|
||||||
{{#each controller as |build|}}
|
{{#each controller as |build|}}
|
||||||
{{builds-item build=build}}
|
{{builds-item build=build}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{no-builds repo=things isPR=displayPullRequests isBranch=displayBranches}}
|
{{no-builds repo=noticeData isPR=displayPullRequests isBranch=displayBranches}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{#if displayShowMoreButton}}
|
{{#if displayShowMoreButton}}
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -63,5 +63,7 @@
|
||||||
<h2 class="page-title">This is not an active repository</h2>
|
<h2 class="page-title">This is not an active repository</h2>
|
||||||
<p class="page-notice">Want to start testing this project on Travis CI?</p>
|
<p class="page-notice">Want to start testing this project on Travis CI?</p>
|
||||||
<a href="http://docs.travis-ci.com/user/getting-started/" class="button button--green">Read the Docs on Getting Started</a>
|
<a href="http://docs.travis-ci.com/user/getting-started/" class="button button--green">Read the Docs on Getting Started</a>
|
||||||
<p>If this repository is already in active use, <br> make sure it’s activated on {{#link-to "profile"}}your profile{{/link-to}}.</p>
|
{{#if user.pushPermissions.length}}
|
||||||
|
<p>If this repository is already in active use, <br> make sure it’s activated on {{#link-to "account" repo.owner}}your profile{{/link-to}}.</p>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
{{#if repo.lastBuildId}}
|
{{#if repo.lastBuildId}}
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{not-active}}
|
{{not-active user=currentUser repo=repo}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user