changeset 225:6056b3c5f8f2 feature_72

URL field no longer mandatory; Delete repo button removed
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 15 Feb 2011 17:23:37 +0000
parents 55468f2fd4ad
children f89f7331fc00
files app/models/repository/mercurial.rb app/views/projects/settings/_repository.rhtml
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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 @@
 <div class="contextual">
 <% 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 %>
 </div>