From 2aba520512d9f2e1bf5d5308b67d51658e2f73ae Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sun, 8 Sep 2013 23:56:56 +0200 Subject: [PATCH] more hardcoded github.com urls --- assets/scripts/app/helpers/helpers.coffee | 4 ++-- assets/scripts/app/models/account.coffee | 2 +- assets/scripts/app/models/hook.coffee | 4 ++-- assets/scripts/app/models/user.coffee | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/scripts/app/helpers/helpers.coffee b/assets/scripts/app/helpers/helpers.coffee index 42aa27b7..8f24bbd1 100644 --- a/assets/scripts/app/helpers/helpers.coffee +++ b/assets/scripts/app/helpers/helpers.coffee @@ -86,12 +86,12 @@ require 'config/emoij' _githubReferenceLink: (reference, current, matched) -> owner = matched.owner || current.owner repo = matched.repo || current.repo - "#{reference}" + "#{reference}" _githubUserRegexp: new RegExp("\\B@([\\w-]+)", 'g') _githubUserLink: (reference, username) -> - "#{reference}" + "#{reference}" _githubCommitReferenceRegexp: new RegExp("([\\w-]+)?\\/([\\w-]+)?@([0-9A-Fa-f]+)", 'g') diff --git a/assets/scripts/app/models/account.coffee b/assets/scripts/app/models/account.coffee index 03c29f79..513782db 100644 --- a/assets/scripts/app/models/account.coffee +++ b/assets/scripts/app/models/account.coffee @@ -7,7 +7,7 @@ require 'travis/model' _reposCount: Ember.attr(Number, key: 'repos_count') urlGithub: (-> - "https://github.com/#{@get('login')}" + "#{Travis.config.source_endpoint}/#{@get('login')}" ).property() # TODO: maybe it would be good to add a "default" value for Ember.attr diff --git a/assets/scripts/app/models/hook.coffee b/assets/scripts/app/models/hook.coffee index 4126292b..350706aa 100644 --- a/assets/scripts/app/models/hook.coffee +++ b/assets/scripts/app/models/hook.coffee @@ -16,11 +16,11 @@ require 'travis/model' ).property('ownerName', 'name') urlGithub: (-> - "https://github.com/#{@get('slug')}" + "#{Travis.config.source_endpoint}/#{@get('slug')}" ).property() urlGithubAdmin: (-> - "https://github.com/#{@get('slug')}/settings/hooks#travis_minibucket" + "#{Travis.config.source_endpoint}/#{@get('slug')}/settings/hooks#travis_minibucket" ).property() toggle: -> diff --git a/assets/scripts/app/models/user.coffee b/assets/scripts/app/models/user.coffee index bd2468a3..d6467085 100644 --- a/assets/scripts/app/models/user.coffee +++ b/assets/scripts/app/models/user.coffee @@ -26,7 +26,7 @@ require 'travis/model' ).observes('isSyncing') urlGithub: (-> - "https://github.com/#{@get('login')}" + "#{Travis.config.source_endpoint}/#{@get('login')}" ).property() _rawPermissions: (->