[#242] fixed repository selection
This commit is contained in:
parent
4205acb47d
commit
ba0d6c665f
|
@ -1,6 +1,8 @@
|
|||
- Repository.custom_sort(platform.repositories).each do |repo|
|
||||
.both
|
||||
= check_box_tag "build_list[include_repos][]", repo.id,
|
||||
(params[:build_list].try(:fetch, :include_repos) || []).include?(repo.id.to_s) || (repo.name == 'main' || @project.repositories.map(&:id).include?(repo.id)),
|
||||
- if params[:build_list].try(:[], :include_repos).present?
|
||||
- checked = (params[:build_list].try(:[], :include_repos) || []).include?(repo.id.to_s)
|
||||
- else checked = false
|
||||
= check_box_tag 'build_list[include_repos][]', repo.id, checked,
|
||||
:id => "include_repos_#{repo.id}", :rep_name => repo.name
|
||||
= label_tag "include_repos_#{repo.id}", repo.name
|
||||
|
|
Loading…
Reference in New Issue