diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-09-14 09:02:29 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-14 09:02:29 +0000 |
commit | 09983a574c43b634681e17f4769e1ceca43ccaa5 (patch) | |
tree | 16520ae84d5eb428d04af482a50b64b126681c36 /app/views/shared/issuable/_sidebar.html.haml | |
parent | d66e0d4dfbfd5bcbffb8e8baaf8d8ba0c84f0773 (diff) | |
download | gitlab-ce-09983a574c43b634681e17f4769e1ceca43ccaa5.tar.gz |
Truncate milestone text on collapse; add tooltip for title
Diffstat (limited to 'app/views/shared/issuable/_sidebar.html.haml')
-rw-r--r-- | app/views/shared/issuable/_sidebar.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index 0afa48b392c..9cae3f51825 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -24,9 +24,9 @@ .block.milestone .sidebar-collapsed-icon = icon('clock-o', 'aria-hidden': 'true') - %span + %span.milestone-title - if issuable.milestone - %span.has-tooltip{ title: milestone_remaining_days(issuable.milestone), data: { container: 'body', html: 1, placement: 'left' } } + %span.has-tooltip{ title: "#{issuable.milestone.title}<br>#{milestone_remaining_days(issuable.milestone)}", data: { container: 'body', html: 1, placement: 'left' } } = issuable.milestone.title - else None |