diff options
Diffstat (limited to 'app/views/projects/_form.rhtml')
-rw-r--r-- | app/views/projects/_form.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_form.rhtml b/app/views/projects/_form.rhtml index 85f3f2966..ded227197 100644 --- a/app/views/projects/_form.rhtml +++ b/app/views/projects/_form.rhtml @@ -30,7 +30,7 @@ <%= hidden_field_tag "repository_enabled", 0 %> <div id="repository"> <% fields_for :repository, @project.repository, { :builder => TabularFormBuilder, :lang => current_language} do |repository| %> -<p><%= repository.text_field :url, :size => 60, :required => true %><br />(http://, https://, svn://, file:///)</p> +<p><%= repository.text_field :url, :size => 60, :required => true, :disabled => (@project.repository && !@project.repository.root_url.blank?) %><br />(http://, https://, svn://, file:///)</p> <p><%= repository.text_field :login, :size => 30 %></p> <p><%= repository.password_field :password, :size => 30 %></p> <% end %> |