Add title to commit links in list view

The short commit message may be truncated making the truncated
portion unreadable. The title of the link should be the commit message
so that the commit message is shown when hovering the commit message
anchor.

Closes gitlab-org/gitlab-ce#42673
This commit is contained in:
James Ramsay 2018-10-24 14:27:40 -04:00
parent f8f1466ad0
commit aa73ef5b16
2 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,2 @@
%span.str-truncated
= link_to_html commit.redacted_full_title_html, project_commit_path(@project, commit.id), class: 'tree-commit-link'
= link_to_html commit.redacted_full_title_html, project_commit_path(@project, commit.id), title: commit.redacted_full_title_html, class: 'tree-commit-link'

View File

@ -0,0 +1,5 @@
---
title: Add commit message to commit tree anchor title
merge_request: 22585
author:
type: fixed