summaryrefslogtreecommitdiff
path: root/app/helpers/button_helper.rb
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-12-05 16:40:04 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-12-05 17:39:18 -0600
commit92f8c7d88dda938f2147524c124163240d69a06f (patch)
treef49917db378a780766cba49e494990f206b46b41 /app/helpers/button_helper.rb
parent4475212a100d6546f8e1ef667c4af82c541a4c19 (diff)
downloadgitlab-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.rb2
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