# HG changeset patch # User luisf # Date 1297790617 0 # Node ID 6056b3c5f8f25793e20274dba690f4dd8869f3d0 # Parent 55468f2fd4addc9f48b78e734c1242a48dcfe82f URL field no longer mandatory; Delete repo button removed diff -r 55468f2fd4ad -r 6056b3c5f8f2 app/models/repository/mercurial.rb --- a/app/models/repository/mercurial.rb Mon Feb 14 15:01:39 2011 +0000 +++ b/app/models/repository/mercurial.rb Tue Feb 15 17:23:37 2011 +0000 @@ -19,7 +19,7 @@ class Repository::Mercurial < Repository attr_protected :root_url - validates_presence_of :url + # validates_presence_of :url FETCH_AT_ONCE = 100 # number of changesets to fetch at once diff -r 55468f2fd4ad -r 6056b3c5f8f2 app/views/projects/settings/_repository.rhtml --- a/app/views/projects/settings/_repository.rhtml Mon Feb 14 15:01:39 2011 +0000 +++ b/app/views/projects/settings/_repository.rhtml Tue Feb 15 17:23:37 2011 +0000 @@ -36,10 +36,6 @@
<% if @repository && !@repository.new_record? %> <%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> -<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project}, - :confirm => l(:text_are_you_sure), - :method => :post, - :class => 'icon icon-del') %> <% end %>