diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-12-05 16:40:04 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-12-05 17:39:18 -0600 |
commit | 92f8c7d88dda938f2147524c124163240d69a06f (patch) | |
tree | f49917db378a780766cba49e494990f206b46b41 /app/helpers/button_helper.rb | |
parent | 4475212a100d6546f8e1ef667c4af82c541a4c19 (diff) | |
download | gitlab-ce-92f8c7d88dda938f2147524c124163240d69a06f.tar.gz |
Fixed clone buttons adding description when append_link is false
Diffstat (limited to 'app/helpers/button_helper.rb')
-rw-r--r-- | app/helpers/button_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb index d06cf2de2c3..3605d6a3c95 100644 --- a/app/helpers/button_helper.rb +++ b/app/helpers/button_helper.rb @@ -84,7 +84,7 @@ module ButtonHelper button_content << content_tag(:span, description, class: 'dropdown-menu-inner-content') if description content_tag (href ? :a : :span), - button_content, + (href ? button_content : title), class: "#{title.downcase}-selector", href: (href if href) end |