diff options
author | André Luís <me@andr3.net> | 2018-06-05 10:10:34 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-05 10:10:34 +0000 |
commit | bc59fc3719869e60ee4ff00c7da766ea01293239 (patch) | |
tree | 9344fecda00d2e60ddb13de74adcf1c9c2fd9a10 /app/helpers | |
parent | 7eb2f184e6a74c84a58ba07d78d2bcaab764a42d (diff) | |
download | gitlab-ce-bc59fc3719869e60ee4ff00c7da766ea01293239.tar.gz |
Resolve "Add Xcode Button in UI"
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 55078e1a2d2..dfca799a53d 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -238,6 +238,14 @@ module ProjectsHelper "git push --set-upstream #{repository_url}/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)" end + def show_xcode_link?(project = @project) + browser.platform.mac? && project.repository.xcode_project? + end + + def xcode_uri_to_repo(project = @project) + "xcode://clone?repo=#{CGI.escape(default_url_to_repo(project))}" + end + private def get_project_nav_tabs(project, current_user) |