summaryrefslogtreecommitdiff
path: root/app/views/import/github
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-18 20:01:33 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-04-19 13:21:30 -0300
commit835acf22d4c6c4cae4d64ad5a069f64c4c679be6 (patch)
treef7c3ee8f403d660b90a57d7220fb8906f2072bbe /app/views/import/github
parent2011f02b5dc718b39ee7b3de7db4cea2fffafd36 (diff)
downloadgitlab-ce-835acf22d4c6c4cae4d64ad5a069f64c4c679be6.tar.gz
Fix GitHub project's link on import page when provider has a custom URL
Diffstat (limited to 'app/views/import/github')
-rw-r--r--app/views/import/github/status.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/import/github/status.html.haml b/app/views/import/github/status.html.haml
index 9639da4cb58..5b7f11440c1 100644
--- a/app/views/import/github/status.html.haml
+++ b/app/views/import/github/status.html.haml
@@ -26,7 +26,7 @@
- @already_added_projects.each do |project|
%tr{id: "project_#{project.id}", class: "#{project_status_css_class(project.import_status)}"}
%td
- = link_to project.import_source, "https://github.com/#{project.import_source}", target: "_blank"
+ = github_project_link(project.import_source)
%td
= link_to project.path_with_namespace, [project.namespace.becomes(Namespace), project]
%td.job-status
@@ -43,7 +43,7 @@
- @repos.each do |repo|
%tr{id: "repo_#{repo.id}"}
%td
- = link_to repo.full_name, "https://github.com/#{repo.full_name}", target: "_blank"
+ = github_project_link(repo.full_name)
%td.import-target
= repo.full_name
%td.import-actions.job-status