[refs #200] Remove unused code

This commit is contained in:
konstantin.grabar 2012-03-21 15:53:54 +04:00
parent f9850c6885
commit e6622d29ea
1 changed files with 2 additions and 17 deletions

View File

@ -7,19 +7,10 @@
- Platform.main.each do |pl|
- if pl.repository_ids.size > 0
.both
- if pl.platform_type == 'main'
= check_box_tag "bpls[]", pl.id, (params[:bpls]||[]).include?(pl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{pl.id}"
= label_tag "bpls_#{pl.id}", pl.name
- else
= check_box_tag "", "", :class => "additional_pl", :disabled => :disabled
= label_tag "", pl.name, :class => "additional_pl"
= check_box_tag "bpls[]", pl.id, (params[:bpls]||[]).include?(pl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{pl.id}"
= label_tag "bpls_#{pl.id}", pl.name
.offset25{:style => 'padding-left: 25px'}
= render 'include_repos', :platform => pl
-#%div{:class => "include_repos_#{p.id}"}= render 'include_repos', :platform => p
-#- Platform.main.each do |bpl|
-# .both
-# = check_box_tag "bpls[]", bpl.id, (params[:bpls]||[]).include?(bpl.id.to_s), :class => 'build_bpl_ids', :id => "bpls_#{bpl.id}"
-# = label_tag "bpls_#{bpl.id}", bpl.name
%section.right
%h3= t("activerecord.attributes.build_list.arch")
- Arch.recent.each do |arch|
@ -39,11 +30,5 @@
= f.label :build_requires
%br
= f.submit t("layout.projects.build_button")
-# %h3= t("activerecord.attributes.build_list.include_repos")
-# #include_repos
-#.preloaded_include_repos{:style => 'display: none'}
-# - @project.platforms.each do |p|
-# %div{:class => "include_repos_#{p.id}"}= render 'include_repos', :platform => p
= render 'projects/submenu'