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:
parent
f8f1466ad0
commit
aa73ef5b16
2 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||
|
|
5
changelogs/unreleased/jramsay-42673-commit-tooltip.yml
Normal file
5
changelogs/unreleased/jramsay-42673-commit-tooltip.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Add commit message to commit tree anchor title
|
||||
merge_request: 22585
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue