summaryrefslogtreecommitdiff
path: root/app/helpers/import_helper.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-15 17:31:14 +0100
committerRémy Coutable <remy@rymai.me>2016-12-19 17:35:51 +0100
commit103114e3d73819f76bed9d8ad1bbdb8964875579 (patch)
tree3457c48ed93ee0266acf6f459e5a9c312e3d42b4 /app/helpers/import_helper.rb
parent5d4531db2555d3051fc47e9268728a670ece95f9 (diff)
downloadgitlab-ce-103114e3d73819f76bed9d8ad1bbdb8964875579.tar.gz
Rename Gogs to Gitea, DRY the controller and improve views
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/helpers/import_helper.rb')
-rw-r--r--app/helpers/import_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/import_helper.rb b/app/helpers/import_helper.rb
index 29df2703d52..fb79e2a4eef 100644
--- a/app/helpers/import_helper.rb
+++ b/app/helpers/import_helper.rb
@@ -8,8 +8,8 @@ module ImportHelper
link_to path_with_namespace, github_project_url(path_with_namespace), target: '_blank'
end
- def gogs_project_link(path_with_namespace)
- link_to path_with_namespace, gogs_project_url(path_with_namespace), target: '_blank'
+ def gitea_project_link(root_url, path_with_namespace)
+ link_to path_with_namespace, gitea_project_url(root_url, path_with_namespace), target: '_blank'
end
private
@@ -25,7 +25,7 @@ module ImportHelper
@github_url = provider.fetch('url', 'https://github.com') if provider
end
- def gogs_project_url(path_with_namespace)
- "#{@gogs_root_url}/#{path_with_namespace}"
+ def gitea_project_url(root_url, path_with_namespace)
+ "#{root_url}/#{path_with_namespace}"
end
end