diff options
| author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-20 19:06:19 +0200 |
|---|---|---|
| committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-20 19:06:19 +0200 |
| commit | eb0e1cc5c26275ff3e5c341404e8bc558f8312b8 (patch) | |
| tree | 71f449ccd6f15422717de3ac24f87d5e888ddd79 /app/views/voicemail_messages/_navigation.html.haml | |
| parent | df6e17e48995f25e72509986f30700d778b179b6 (diff) | |
| parent | 3b27a5d45b12f6bac65da2a8e17387bfda42a2f1 (diff) | |
Merge branch 'develop'
Diffstat (limited to 'app/views/voicemail_messages/_navigation.html.haml')
| -rw-r--r-- | app/views/voicemail_messages/_navigation.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/voicemail_messages/_navigation.html.haml b/app/views/voicemail_messages/_navigation.html.haml index 2277bf2..225801c 100644 --- a/app/views/voicemail_messages/_navigation.html.haml +++ b/app/views/voicemail_messages/_navigation.html.haml @@ -1,9 +1,10 @@ -%nav - %ol.abc - %li +%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) -.pagination - = will_paginate @voicemail_messages + = 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 |
