diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-12-06 20:43:58 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-12-06 20:43:58 +0000 |
commit | c3bbad762d418857e3f5b52222f5eedd62663229 (patch) | |
tree | c5b7083396734b3d13883a7316e223a73135a441 /app/helpers | |
parent | 60011bc42e3d820344e804f70d170c0c8b25d7e9 (diff) | |
parent | 9395d198f9b9ec59858d2f316e58cda22ab80050 (diff) | |
download | gitlab-ce-c3bbad762d418857e3f5b52222f5eedd62663229.tar.gz |
Merge branch '19376-post-bfg-cleanup' into 'master'
Allow internal references to be removed
Closes #19376
See merge request gitlab-org/gitlab-ce!23189
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index f6a45ef34e3..7ce6b04df7e 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -257,6 +257,10 @@ module ProjectsHelper "xcode://clone?repo=#{CGI.escape(default_url_to_repo(project))}" end + def link_to_bfg + link_to 'BFG', 'https://rtyley.github.io/bfg-repo-cleaner/', target: '_blank', rel: 'noopener noreferrer' + end + def legacy_render_context(params) params[:legacy_render] ? { markdown_engine: :redcarpet } : {} end |