We don't need a repo model to link to repo
This commit is contained in:
parent
4d8fe96a41
commit
8b1fd91af4
|
@ -30,13 +30,3 @@ Repo = Travis.Repo
|
||||||
return if @get('isSaving')
|
return if @get('isSaving')
|
||||||
@set 'active', !@get('active')
|
@set 'active', !@get('active')
|
||||||
@save()
|
@save()
|
||||||
|
|
||||||
repo: (->
|
|
||||||
# I don't want to make an ajax request for each repository showed in profile,
|
|
||||||
# especially, because most of them does not have any builds anyway. That's why
|
|
||||||
# I add an info which we have here to the store - this will allow to display
|
|
||||||
# a link to the repo and if more info is needed, it will be requested when the
|
|
||||||
# link is used
|
|
||||||
@store.push('repo', @getProperties('id', 'slug'))
|
|
||||||
@store.getById('repo', @get('id'))
|
|
||||||
).property('id')
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<p class="description">{{hook.description}}</p>
|
<p class="description">{{hook.description}}</p>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
{{#link-to "settings" hook.repo class="repo-settings-icon tool-tip" title="Repository settings"}}{{/link-to}}
|
{{#link-to "settings" hook.ownerName hook.name class="repo-settings-icon tool-tip" title="Repository settings"}}{{/link-to}}
|
||||||
{{travis-switch action="toggle" target=hook toggleAutomatically="false"}}
|
{{travis-switch action="toggle" target=hook toggleAutomatically="false"}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user