Skip to content
Snippets Groups Projects
Commit 0de8e260 authored by Douwe Maan's avatar Douwe Maan
Browse files

Pass original text along with label reference filter.

parent f905fd23
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -51,7 +51,11 @@ module Gitlab
if label = project.labels.find_by(params)
url = url_for_label(project, label)
klass = reference_class(:label)
data = data_attribute(project: project.id, label: label.id)
data = data_attribute(
original: link_text || match,
project: project.id,
label: label.id
)
 
text = link_text || render_colored_label(label)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment