2018-12-16 13:19:38 +05:30
|
|
|
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
|
2022-03-02 13:35:08 +05:30
|
|
|
@@ -9,7 +9,10 @@
|
2018-12-16 13:19:38 +05:30
|
|
|
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?
|
2021-06-09 22:52:32 +05:30
|
|
|
commit_link = link_to(Gitlab.revision, source_host_url + namespace_project_commits_path(source_code_group, source_code_project, Gitlab.revision))
|
2018-12-16 13:19:38 +05:30
|
|
|
[Gitlab::VERSION, content_tag(:small, commit_link)].join(' ').html_safe
|
|
|
|
else
|