-unless@project.empty_repo?-ifcurrent_user&&can?(current_user,:fork_project,@project)-ifcurrent_user.already_forked?(@project)&¤t_user.manageable_namespaces.size<2=link_tonamespace_project_path(current_user,current_user.fork_of(@project)),title: 'Go to your fork',class: 'btn has_tooltip'do=icon('code-fork fw') Fork