summaryrefslogtreecommitdiff
path: root/app/views/voicemail_messages/_navigation.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-30 10:14:55 +0200
committerPeter Kozak <spag@golwen.net>2013-04-30 10:14:55 +0200
commit40875583e650747c6ad7f3be22ed5c365c667f36 (patch)
tree59aad077e9231d6aaa2d00d39b1875dac407c423 /app/views/voicemail_messages/_navigation.html.haml
parent2beeef5436da123dac0b3a9020c0ee352c8724c9 (diff)
voicemail messages index view
Diffstat (limited to 'app/views/voicemail_messages/_navigation.html.haml')
-rw-r--r--app/views/voicemail_messages/_navigation.html.haml15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/voicemail_messages/_navigation.html.haml b/app/views/voicemail_messages/_navigation.html.haml
index 2277bf2..d3b9c5d 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
- %a{ :href => "?type=" }= t('voicemail_messages.index.navigation.all', :count => @messages_count)
- %a{ :href => "?type=read" }= t('voicemail_messages.index.navigation.read', :count => @messages_read_count)
- %a{ :href => "?type=unread" }= t('voicemail_messages.index.navigation.unread', :count => @messages_unread_count)
+%ul{:class => 'nav nav-pills'}
+ %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