diff options
author | spag <spag@golwen.net> | 2013-01-17 17:50:47 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-17 17:50:47 +0100 |
commit | 24e47521f1a57c73dc349de35909af7e1f8a4a1f (patch) | |
tree | efa33a15f8182984c3768f3b5c4e2729d7b26e21 /app/views/call_routes/index.html.haml | |
parent | a36e8ea2bf092a23530b0ad54504667caa94e788 (diff) |
group by table
Diffstat (limited to 'app/views/call_routes/index.html.haml')
-rw-r--r-- | app/views/call_routes/index.html.haml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/views/call_routes/index.html.haml b/app/views/call_routes/index.html.haml index 687a9dc..c83606b 100644 --- a/app/views/call_routes/index.html.haml +++ b/app/views/call_routes/index.html.haml @@ -1,6 +1,11 @@ - title t("call_routes.index.page_title") - if @call_routes && @call_routes.count > 0 - = render "index_core", :call_routes => @call_routes - -= render :partial => 'shared/create_link', :locals => {:child_class => CallRoute}
\ No newline at end of file + %table + - @tables.each do |table| + %tr + %td{:colspan => 3} + %h3= table + = render "index_core", :call_routes => @call_routes.where(:table => table) + += render :partial => 'shared/create_link', :locals => {:child_class => CallRoute} |