summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_sidebar.html.haml
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-09-14 09:02:29 +0000
committerPhil Hughes <me@iamphill.com>2017-09-14 09:02:29 +0000
commit09983a574c43b634681e17f4769e1ceca43ccaa5 (patch)
tree16520ae84d5eb428d04af482a50b64b126681c36 /app/views/shared/issuable/_sidebar.html.haml
parentd66e0d4dfbfd5bcbffb8e8baaf8d8ba0c84f0773 (diff)
downloadgitlab-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.haml4
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