diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-24 12:41:16 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-24 12:41:16 +0300 |
commit | 79a4da907dbeb0ba868baa092ef3ca0c01d638e9 (patch) | |
tree | 7dbedda57f5b7c1f7cddf8385b698731bd19fa87 /app/helpers | |
parent | f0c0edc2a6696c5cf72253017bae95595788dce3 (diff) | |
parent | b5c0bdd7c949fa3986200bc8f953c3905b7490b2 (diff) | |
download | gitlab-ce-79a4da907dbeb0ba868baa092ef3ca0c01d638e9.tar.gz |
Merge pull request #7816 from cirosantilli/factor-fork
Factor fork button view.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index d22526947dd..f7da30bcc4b 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -156,6 +156,14 @@ module ProjectsHelper end end + def link_to_toggle_fork + out = content_tag(:i, '', class: 'icon-code-fork') + out << ' Fork' + out << content_tag(:span, class: 'count') do + @project.forks_count.to_s + end + end + private def get_project_nav_tabs(project, current_user) |