Commit 0de8e260 authored by Douwe Maan's avatar Douwe Maan

Pass original text along with label reference filter.

parent f905fd23
...@@ -51,7 +51,11 @@ module Gitlab ...@@ -51,7 +51,11 @@ module Gitlab
if label = project.labels.find_by(params) if label = project.labels.find_by(params)
url = url_for_label(project, label) url = url_for_label(project, label)
klass = reference_class(: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) text = link_text || render_colored_label(label)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment