diff options
author | Peter Kozak <spag@golwen.net> | 2013-05-02 10:50:24 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-05-02 10:50:24 +0200 |
commit | fc40cc2b38a3b83115881a557c4c1fbf417fa95f (patch) | |
tree | e51684109183490ded1be2eca90c6061834eecba /app/views/call_histories | |
parent | 6b02f64994d6fd79621c486ff4f29c0390aa8b15 (diff) |
pagination
Diffstat (limited to 'app/views/call_histories')
-rw-r--r-- | app/views/call_histories/_navigation.html.haml | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/app/views/call_histories/_navigation.html.haml b/app/views/call_histories/_navigation.html.haml index 2218c50..d293471 100644 --- a/app/views/call_histories/_navigation.html.haml +++ b/app/views/call_histories/_navigation.html.haml @@ -1,14 +1,15 @@ -%ul{:class => 'nav nav-pills'} - %li{:class => (type.blank? ? :active : nil )} - %a{ :href => "?type=" }= t("call_histories.index.navigation.all", :calls => @calls_count) - %li{:class => (type == 'missed' ? :active : nil )} - %a{ :href => "?type=missed" }= t("call_histories.index.navigation.missed", :calls => @calls_missed_count) - %li{:class => (type == 'received' ? :active : nil )} - %a{ :href => "?type=received" }= t("call_histories.index.navigation.received", :calls => @calls_received_count) - %li{:class => (type == 'dialed' ? :active : nil )} - %a{ :href => "?type=dialed" }= t("call_histories.index.navigation.dialed", :calls => @calls_dialed_count) - %li{:class => (type == 'forwarded' ? :active : nil )} - %a{ :href => "?type=forwarded" }= t("call_histories.index.navigation.forwarded", :calls => @calls_forwarded_count) +%div{:class => 'pagination'} + %ul + %li{:class => (type.blank? ? :active : nil )} + %a{ :href => "?type=" }= t("call_histories.index.navigation.all", :calls => @calls_count) + %li{:class => (type == 'missed' ? :active : nil )} + %a{ :href => "?type=missed" }= t("call_histories.index.navigation.missed", :calls => @calls_missed_count) + %li{:class => (type == 'received' ? :active : nil )} + %a{ :href => "?type=received" }= t("call_histories.index.navigation.received", :calls => @calls_received_count) + %li{:class => (type == 'dialed' ? :active : nil )} + %a{ :href => "?type=dialed" }= t("call_histories.index.navigation.dialed", :calls => @calls_dialed_count) + %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, :renderer => BootstrapPagination::Rails + + = will_paginate call_histories, :renderer => BootstrapPagination::Rails, :previous_label => raw('<i class = "icon-chevron-left"></i>'), :next_label => raw('<i class = "icon-chevron-right"></i>'), :class => nil |