Add patch to use project link on Salsa in the help page
This commit is contained in:
parent
7fb73ff66d
commit
d5fe0f94f1
2 changed files with 20 additions and 0 deletions
19
debian/patches/0700-add-salsa-link-to-help.patch
vendored
Normal file
19
debian/patches/0700-add-salsa-link-to-help.patch
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Description: Use link to gitlab project on Salsa in help page
|
||||||
|
Author: Balasankar C <balasankarc@debian.org>
|
||||||
|
Last-Update: 2018-12-16
|
||||||
|
---
|
||||||
|
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||||
|
--- a/app/helpers/version_check_helper.rb
|
||||||
|
+++ b/app/helpers/version_check_helper.rb
|
||||||
|
@@ -11,7 +11,10 @@
|
||||||
|
end
|
||||||
|
|
||||||
|
def link_to_version
|
||||||
|
- if Gitlab.pre_release?
|
||||||
|
+ if ENV['GITLAB_DEBIAN_VERSION'] && ENV['SALSA_TAG_URL']
|
||||||
|
+ debian_tag = ENV['GITLAB_DEBIAN_VERSION'].gsub('~', '_')
|
||||||
|
+ link_to ENV['GITLAB_DEBIAN_VERSION'], ENV['SALSA_TAG_URL'] + debian_tag
|
||||||
|
+ elsif Gitlab.pre_release?
|
||||||
|
commit_link = link_to(Gitlab.revision, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', source_code_project, Gitlab.revision))
|
||||||
|
[Gitlab::VERSION, content_tag(:small, commit_link)].join(' ').html_safe
|
||||||
|
else
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -25,3 +25,4 @@
|
||||||
0670-allow-doorkeepr-4_3.patch
|
0670-allow-doorkeepr-4_3.patch
|
||||||
0680-rails-5_2.patch
|
0680-rails-5_2.patch
|
||||||
0690-debian-usage-ping.patch
|
0690-debian-usage-ping.patch
|
||||||
|
0700-add-salsa-link-to-help.patch
|
||||||
|
|
Loading…
Reference in a new issue