Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Pereira <reuben453@gmail.com>2018-07-04 23:25:55 +0300
committerReuben Pereira <reuben453@gmail.com>2018-07-04 23:25:55 +0300
commit74c81cc50e7d4deff11e9777b9522f8adf8b3c96 (patch)
tree0681e91baf0375b00e7b7972fb504cf3bd32f665 /lib/banzai
parent2730ae1d869af4ddd48dc312d230c1bcafec19b5 (diff)
Add back the Project#to_reference_with_postfix function since it can be used in the ProjectReferenceFilter#link_to_project function
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/project_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/project_reference_filter.rb b/lib/banzai/filter/project_reference_filter.rb
index 9764cfa4ef5..fd2a86a6d45 100644
--- a/lib/banzai/filter/project_reference_filter.rb
+++ b/lib/banzai/filter/project_reference_filter.rb
@@ -102,7 +102,7 @@ module Banzai
def link_to_project(project, link_content: nil)
url = urls.project_url(project, only_path: context[:only_path])
data = data_attribute(project: project.id)
- content = link_content || project.full_path + Project.reference_postfix
+ content = link_content || project.to_reference_with_postfix
link_tag(url, data, content, project.name)
end