diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-29 18:15:54 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-29 18:15:54 -0700 |
commit | 405f91d2b8eb7c8276341ac44fcabc758fc89343 (patch) | |
tree | 1952c241abbaceaf903b4c9583df7047210afe7d /app/helpers/projects_helper.rb | |
parent | 6b9f1e1a9ff2ea9c94bca48ea8bc68f8ddaff273 (diff) | |
download | gitlab-ce-405f91d2b8eb7c8276341ac44fcabc758fc89343.tar.gz |
Refactor star/fork buttons
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 5ca71b14d0c..4629de2ecad 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -118,11 +118,15 @@ module ProjectsHelper end def link_to_toggle_fork - out = icon('code-fork') - out << ' Fork' - out << content_tag(:span, class: 'count btn-action-count') do + html = content_tag('span') do + icon('code-fork') + ' Fork' + end + + count_html = content_tag(:span, class: 'count') do @project.forks_count.to_s end + + html + count_html end private |