Skip to content

Commit

Permalink
group by fullpath and verb double index page
Browse files Browse the repository at this point in the history
  • Loading branch information
artemave committed May 17, 2012
1 parent e97f671 commit 066aca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/doubles/index.haml
Expand Up @@ -10,7 +10,7 @@
%th Active?
%th  
%tbody
- @doubles.group_by {|f| f.fullpath}.each do |fullpath, fs|
- @doubles.group_by {|f| f.fullpath + f.verb }.each do |group, fs|
- fs.each_with_index do |f, i|
%tr{:id => "double_row_#{f.id}"}
- if i == 0
Expand All @@ -24,7 +24,7 @@
%td= f.status
%td.label.text-center
- if fs.size > 1
%input.active-double-toggle{:type => 'radio', :name => fullpath, :checked => f.active, :data => { :double_id => f.id }}
%input.active-double-toggle{:type => 'radio', :name => group, :checked => f.active, :data => { :double_id => f.id }}
- else
yes
%td.edit-link.text-center.white-space-nowrap
Expand Down

0 comments on commit 066aca2

Please sign in to comment.