summaryrefslogtreecommitdiff
path: root/app/views/call_histories/_navigation.html.haml
blob: d293471e8dbab063db9c470ed5ccb1032382865b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%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)


  = 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