summaryrefslogtreecommitdiff
path: root/app/views/call_histories/_navigation.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-29 13:39:40 +0200
committerPeter Kozak <spag@golwen.net>2013-04-29 13:39:40 +0200
commit2e3f13b5519f6764bbad4bb16232d1dc22be7551 (patch)
treea28fc94de8fa4ac6258479331116636ef2e4cc1e /app/views/call_histories/_navigation.html.haml
parent21e998abf2d18de8877e191a5c4dd38fb929c745 (diff)
padination added to navigation view
Diffstat (limited to 'app/views/call_histories/_navigation.html.haml')
-rw-r--r--app/views/call_histories/_navigation.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/call_histories/_navigation.html.haml b/app/views/call_histories/_navigation.html.haml
index d72ad64..2218c50 100644
--- a/app/views/call_histories/_navigation.html.haml
+++ b/app/views/call_histories/_navigation.html.haml
@@ -1,14 +1,14 @@
%ul{:class => 'nav nav-pills'}
- %li
+ %li{:class => (type.blank? ? :active : nil )}
%a{ :href => "?type=" }= t("call_histories.index.navigation.all", :calls => @calls_count)
- %li
+ %li{:class => (type == 'missed' ? :active : nil )}
%a{ :href => "?type=missed" }= t("call_histories.index.navigation.missed", :calls => @calls_missed_count)
- %li
+ %li{:class => (type == 'received' ? :active : nil )}
%a{ :href => "?type=received" }= t("call_histories.index.navigation.received", :calls => @calls_received_count)
- %li
+ %li{:class => (type == 'dialed' ? :active : nil )}
%a{ :href => "?type=dialed" }= t("call_histories.index.navigation.dialed", :calls => @calls_dialed_count)
- %li
+ %li{:class => (type == 'forwarded' ? :active : nil )}
%a{ :href => "?type=forwarded" }= t("call_histories.index.navigation.forwarded", :calls => @calls_forwarded_count)
-/ .pagination
-/ = will_paginate @call_histories
+.pagination
+ = will_paginate call_histories, :renderer => BootstrapPagination::Rails