summaryrefslogtreecommitdiff
path: root/app/views/call_routes/index.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-02 11:42:52 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-02 11:42:52 +0100
commitba5b2737365592cc511a526a3b14be46c3a75467 (patch)
treeb5f782af7817270fc610f7756082608d00685e19 /app/views/call_routes/index.html.haml
parentaad8a03991fe616f84fa18ed1db81831220f8d64 (diff)
Created a sortable table for the call_routes. #151
Diffstat (limited to 'app/views/call_routes/index.html.haml')
-rw-r--r--app/views/call_routes/index.html.haml11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/views/call_routes/index.html.haml b/app/views/call_routes/index.html.haml
index 488e1c7..d5181e3 100644
--- a/app/views/call_routes/index.html.haml
+++ b/app/views/call_routes/index.html.haml
@@ -1,11 +1,8 @@
- content_for :title, t("call_routes.index.page_title")
-- if @call_routes && @call_routes.count > 0
- %table.table.table-striped
- - @routing_tables.each do |routing_table|
- %tr
- %td{:colspan => 3}
- %h3= routing_table
- = render "index_core", :call_routes => @call_routes.where(:routing_table => routing_table)
+- if @call_routes && @call_routes.any?
+ - @routing_tables.each do |routing_table|
+ %h3= routing_table
+ = render "index_core", :call_routes => @call_routes.where(:routing_table => routing_table)
= render :partial => 'shared/create_link', :locals => {:child_class => CallRoute}