Permalink
Browse files

group by fullpath and verb double index page

  • Loading branch information...
1 parent e97f671 commit 066aca26d16c837a85507e9f893b5ee74dc2be33 @artemave artemave committed May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/doubles/index.haml
View
@@ -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
@@ -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

0 comments on commit 066aca2

Please sign in to comment.