blob: 2218c507512db89f522f87976caf93a68036c18d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
%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)
.pagination
= will_paginate call_histories, :renderer => BootstrapPagination::Rails
|