Display current repo's URL for lint link

This commit is contained in:
Piotr Sarnacki 2014-07-21 18:04:25 +02:00
parent 55d41d4d10
commit aa06f3947e
3 changed files with 14 additions and 7 deletions

View File

@ -1 +1,8 @@
Travis.RequestsController = Ember.ArrayController.extend()
Travis.RequestsController = Ember.ArrayController.extend
needs: ['repo']
repo: Ember.computed.alias('controllers.repo.repo')
lintUrl: (->
slug = @get('repo.slug')
"https://lint.travis-ci.org/#{slug}"
).property('repo.slug')

View File

@ -78,9 +78,3 @@
</h5>
</li>
</ul>
<div class="travis-lint">
<p>Travis Lint for clean .yml files
<a href=”#”>lint.travis-ci.org/travis-ci/travis-api</a>
</p>
</div>

View File

@ -1,3 +1,9 @@
<div class="travis-lint">
<p>Travis Lint for clean .yml files
<a {{bind-attr href="lintUrl"}}>lint.travis-ci.org/{{repo.slug}}</a>
</p>
</div>
<table id="requests" class="list">
<thead>
<tr>