diff --git a/assets/scripts/app/models/hook.coffee b/assets/scripts/app/models/hook.coffee index d34803e7..81b1ad41 100644 --- a/assets/scripts/app/models/hook.coffee +++ b/assets/scripts/app/models/hook.coffee @@ -30,13 +30,3 @@ Repo = Travis.Repo return if @get('isSaving') @set 'active', !@get('active') @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') diff --git a/assets/scripts/app/templates/account.hbs b/assets/scripts/app/templates/account.hbs index 05e13dd4..37633139 100644 --- a/assets/scripts/app/templates/account.hbs +++ b/assets/scripts/app/templates/account.hbs @@ -34,7 +34,7 @@

{{hook.description}}

- {{#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"}}