From 8542c608389d7955bc5d6ac241de3c614a23ec9f Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 15 Jun 2012 00:12:29 +0600 Subject: [PATCH] [refs #522] to fork check own projects --- app/views/projects/git/base/_choose_fork.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/projects/git/base/_choose_fork.html.haml b/app/views/projects/git/base/_choose_fork.html.haml index 8bffb0d33..4288bf9a8 100644 --- a/app/views/projects/git/base/_choose_fork.html.haml +++ b/app/views/projects/git/base/_choose_fork.html.haml @@ -1,8 +1,8 @@ -- if owner.projects.exists? :name => @project.name +- if owner.own_projects.exists? :name => @project.name - is_group = owner.class == Group ? "(#{t 'activerecord.models.group'})" : '' %p.center =t 'layout.projects.already_exists' - =link_to "#{owner.uname}/#{@project.name} #{is_group}", project_path(owner.projects.by_name(@project.name).first) + =link_to "#{owner.uname}/#{@project.name} #{is_group}", project_path(owner, @project.name) - else = form_for @project, :url => fork_project_path(@project), :html => { :class => :form, :multipart => true, :method => :post } do |f| = hidden_field_tag :group, owner.id if owner.class == Group