diff options
Diffstat (limited to 'app/views/search/results/_blob_highlight.html.haml')
-rw-r--r-- | app/views/search/results/_blob_highlight.html.haml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/search/results/_blob_highlight.html.haml b/app/views/search/results/_blob_highlight.html.haml index de1fa9a7fd5..729eda331b5 100644 --- a/app/views/search/results/_blob_highlight.html.haml +++ b/app/views/search/results/_blob_highlight.html.haml @@ -10,7 +10,13 @@ .line-numbers .gl-display-flex %span.diff-line-num.gl-pl-3 - %a.has-tooltip{ href: "#{blame_link}#L#{i}", id: "blame-L#{i}", 'data-line-number' => i, title: _('View blame') } + %a.has-tooltip{ href: "#{blame_link}#L#{i}", + id: "blame-L#{i}", + data: { "line_number" => i, + "track_action" => 'click_link', + "track_label" => 'git_blame', + "track_property" => 'search_result' }, + title: _('View blame') } = sprite_icon('git') %span.diff-line-num.flex-grow-1.gl-pr-3 %a{ href: "#{blob_link}#L#{i}", id: "blob-L#{i}", 'data-line-number' => i, class: 'gl-display-flex! gl-align-items-center gl-justify-content-end' } |