#921 change order ownership buttons

This commit is contained in:
Alexander Machehin 2013-02-22 16:54:08 +06:00
parent 7a8dcc1b10
commit d39a269a7f
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@
%h3.medium= t("layout.build_lists.ownership.header")
=f.hidden_field :ownership
.btn-group
- ownerships = %w[owned everything]
- ownerships << 'related' unless @project
- ownerships.each do |ownership|
- ['owned', (@project ? nil : 'related'), 'everything'].compact.each do |ownership|
-options = {:class => @filter.ownership == ownership ? 'active' : '', :value => ownership, :style => (@project ? 'width:50%;' : '')}
%button.btn.ownership{options}= t "layout.build_lists.ownership.#{ownership}"
%h3.medium= t 'number_rows'