summaryrefslogtreecommitdiff
path: root/app/views/voicemail_messages/_navigation.html.haml
blob: 225801c72ba0557044496e4d7b1f62b0923c335f (plain)
1
2
3
4
5
6
7
8
9
10
%div{:class => 'pagination'}
  %ul
    %li{:class => (type.blank? ? :active : nil )}
      %a{ :href => "?type=" }= t('voicemail_messages.index.navigation.all', :count => @messages_count)
    %li{:class => (type == 'read' ? :active : nil )}
      %a{ :href => "?type=read" }= t('voicemail_messages.index.navigation.read', :count => @messages_read_count)
    %li{:class => (type == 'unread' ? :active : nil )}
      %a{ :href => "?type=unread" }= t('voicemail_messages.index.navigation.unread', :count => @messages_unread_count)

    = will_paginate @voicemail_messages, :renderer => BootstrapPagination::Rails, :previous_label => raw('<i class = "icon-chevron-left"></i>'), :next_label => raw('<i class = "icon-chevron-right"></i>'), :class => nil