Commit da55f2d9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix fork button for project home page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0d525381
......@@ -17,13 +17,13 @@
.fork-buttons
- if current_user && can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
- if current_user.already_forked?(@project)
= link_to project_path(current_user.fork_of(@project)) do
= link_to project_path(current_user.fork_of(@project)), title: 'Got to my fork' do
%i.icon-code-fork
Fork
%span.count
= @project.forks_count
- else
= link_to fork_project_path(@project), title: "Fork", class: "btn btn-block", method: "POST" do
= link_to fork_project_path(@project), title: "Fork project", method: "POST" do
%i.icon-code-fork
Fork
%span.count
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment