summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-06-02 01:33:48 +0000
committerRobert Speicher <robert@gitlab.com>2016-06-02 01:33:48 +0000
commit933a6e0d3618da7bcfc486d6f0c0d6cf9828116e (patch)
tree073dcf0fe37cdfe58e4562cdb6221c33c92187b7
parent7d33fba7af94667311ab9a7d7d7041ed72ba3937 (diff)
parent80cf7d3b9761ccb5e0b13409bb4b91c5e1899b23 (diff)
downloadgitlab-ce-933a6e0d3618da7bcfc486d6f0c0d6cf9828116e.tar.gz
Merge branch 'fix-dropdown-cutoff' into 'master'
Adds a `title` attribute to the branch dropdown for when the name has been cut off. Fixes #18056 See merge request !4395
-rw-r--r--app/views/projects/merge_requests/dropdowns/_branch.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/dropdowns/_branch.html.haml b/app/views/projects/merge_requests/dropdowns/_branch.html.haml
index ba8d9a5835c..a60c445aa51 100644
--- a/app/views/projects/merge_requests/dropdowns/_branch.html.haml
+++ b/app/views/projects/merge_requests/dropdowns/_branch.html.haml
@@ -1,5 +1,5 @@
%ul
- branches.each do |branch|
%li
- %a{ href: '#', class: "#{('is-active' if selected == branch)}", data: { id: branch } }
+ %a{ href: '#', class: "#{('is-active' if selected == branch)}", title: branch, data: { id: branch } }
= branch