scm: code clean up projects/settings/_repository.rhtml.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5626 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-04 05:00:16 +00:00
parent 69bb041c46
commit ff77ecee86
1 changed files with 11 additions and 4 deletions

View File

@ -12,7 +12,13 @@
<div class="contextual"> <div class="contextual">
<% if @repository && !@repository.new_record? %> <% if @repository && !@repository.new_record? %>
<%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %> <%= 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}, <%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
:confirm => l(:text_are_you_sure), :confirm => l(:text_are_you_sure),
:method => :post, :method => :post,
@ -20,5 +26,6 @@
<% end %> <% end %>
</div> </div>
<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %> <%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save),
:disabled => @repository.nil?) %>
<% end %> <% end %>